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 | |
| parent | 98f5779f4257682ba9b5fc490557618e3f15f84b (diff) | |
| download | zlib-377173b57ef9fab5066481a87a1901bd72fa2c32.tar.gz zlib-377173b57ef9fab5066481a87a1901bd72fa2c32.tar.bz2 zlib-377173b57ef9fab5066481a87a1901bd72fa2c32.zip | |
Fix bug in gzread.c when end-of-file is reached.
| -rw-r--r-- | gzread.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -242,7 +242,7 @@ local int gz_fetch(state) | |||
| 242 | if (gz_decomp(state) == -1) | 242 | if (gz_decomp(state) == -1) |
| 243 | return -1; | 243 | return -1; |
| 244 | } | 244 | } |
| 245 | } while (state->x.have == 0); | 245 | } while (state->x.have == 0 && (!state->eof || strm->avail_in)); |
| 246 | return 0; | 246 | return 0; |
| 247 | } | 247 | } |
| 248 | 248 | ||
