diff options
Diffstat (limited to 'lib/decompress_inflate.c')
-rw-r--r-- | lib/decompress_inflate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/decompress_inflate.c b/lib/decompress_inflate.c index d2e7c758d1ca..839a329b4fc4 100644 --- a/lib/decompress_inflate.c +++ b/lib/decompress_inflate.c | |||
@@ -97,7 +97,7 @@ STATIC int INIT gunzip(unsigned char *buf, int len, | |||
97 | strm->next_in++; | 97 | strm->next_in++; |
98 | strm->next_in++; | 98 | strm->next_in++; |
99 | } | 99 | } |
100 | strm->avail_in = len - 10; | 100 | strm->avail_in = len - (strm->next_in - zbuf); |
101 | 101 | ||
102 | strm->next_out = out_buf; | 102 | strm->next_out = out_buf; |
103 | strm->avail_out = out_len; | 103 | strm->avail_out = out_len; |