"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "htmldoc/zipc.c" between
htmldoc-1.9.14-source.tar.gz and htmldoc-1.9.15-source.tar.gz

About: HTMLDOC converts HTML and Markdown source files into indexed HTML, EPUB, PostScript, or PDF files (but doesn’t support CSS).

zipc.c  (htmldoc-1.9.14-source):zipc.c  (htmldoc-1.9.15-source)
skipping to change at line 604 skipping to change at line 604
zc->error = "Not opened for reading."; zc->error = "Not opened for reading.";
return (-1); return (-1);
} }
if ((zf->uncompressed_pos + bytes) > zf->uncompressed_size) if ((zf->uncompressed_pos + bytes) > zf->uncompressed_size)
bytes = zf->uncompressed_size - zf->uncompressed_pos; bytes = zf->uncompressed_size - zf->uncompressed_pos;
if (zc->readptr && zc->readptr < zc->readend) if (zc->readptr && zc->readptr < zc->readend)
{ {
rbytes = zc->readend - zc->readptr; rbytes = zc->readend - zc->readptr;
if (rbytes > bytes) if (rbytes > (ssize_t)bytes)
rbytes = bytes; rbytes = (ssize_t)bytes;
memcpy(data, zc->readptr, rbytes); memcpy(data, zc->readptr, rbytes);
zc->readptr += rbytes; zc->readptr += rbytes;
} }
else else
rbytes = zipc_read_file(zf, data, bytes); rbytes = zipc_read_file(zf, data, bytes);
if (rbytes > 0) if (rbytes > 0)
zf->uncompressed_pos += rbytes; zf->uncompressed_pos += rbytes;
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)