summaryrefslogtreecommitdiff
path: root/infcodes.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:20:29 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:20:29 -0700
commit14763ac7c6c03bca62c39e35c03cf5bfc7728802 (patch)
treef1055d11ef7b282b698ce7c40e1a9c061413cbdf /infcodes.c
parentc34c1fcbb19852ca35216ad66276f4f86af3fc22 (diff)
downloadzlib-1.1.3.tar.gz
zlib-1.1.3.tar.bz2
zlib-1.1.3.zip
zlib 1.1.3v1.1.3
Diffstat (limited to 'infcodes.c')
-rw-r--r--infcodes.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/infcodes.c b/infcodes.c
index 1d3baa9..d4e5ee9 100644
--- a/infcodes.c
+++ b/infcodes.c
@@ -221,6 +221,13 @@ int r;
221 c->mode = START; 221 c->mode = START;
222 break; 222 break;
223 case WASH: /* o: got eob, possibly more output */ 223 case WASH: /* o: got eob, possibly more output */
224 if (k > 7) /* return unused byte, if any */
225 {
226 Assert(k < 16, "inflate_codes grabbed too many bytes")
227 k -= 8;
228 n++;
229 p--; /* can always return one */
230 }
224 FLUSH 231 FLUSH
225 if (s->read != s->write) 232 if (s->read != s->write)
226 LEAVE 233 LEAVE