diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-12-11 23:30:56 -0800 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-12-11 23:30:56 -0800 |
commit | 377173b57ef9fab5066481a87a1901bd72fa2c32 (patch) | |
tree | f1a3a75a69f84c3b7ef78833186594cf5529a517 /gzread.c | |
parent | 98f5779f4257682ba9b5fc490557618e3f15f84b (diff) | |
download | zlib-377173b57ef9fab5066481a87a1901bd72fa2c32.tar.gz |
Fix bug in gzread.c when end-of-file is reached.
Diffstat (limited to 'gzread.c')
-rw-r--r-- | gzread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -242,7 +242,7 @@ local int gz_fetch(state) if (gz_decomp(state) == -1) return -1; } - } while (state->x.have == 0); + } while (state->x.have == 0 && (!state->eof || strm->avail_in)); return 0; } |