projects
/
platform
/
upstream
/
zlib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98f5779
)
Fix bug in gzread.c when end-of-file is reached.
author
Mark Adler
<madler@alumni.caltech.edu>
Mon, 12 Dec 2011 07:30:56 +0000
(23:30 -0800)
committer
Mark Adler
<madler@alumni.caltech.edu>
Mon, 12 Dec 2011 07:30:56 +0000
(23:30 -0800)
gzread.c
patch
|
blob
|
history
diff --git
a/gzread.c
b/gzread.c
index
cda7935
..
1e97e38
100644
(file)
--- a/
gzread.c
+++ b/
gzread.c
@@
-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;
}