Fix for a bug report that compressed files that are exactly 64 KiB long

produce a zlib error.
This commit is contained in:
Dan Fandrich 2005-02-07 19:12:37 +00:00
parent 7b23eff9cf
commit e4a1788614
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ inflate_stream(struct SessionHandle *data,
}
/* Done with these bytes, exit */
if (status == Z_OK && z->avail_in == 0 && z->avail_out > 0) {
if (status == Z_OK && z->avail_in == 0) {
free(decomp);
return result;
}