summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inffast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inffast.c b/inffast.c
index f2811ef..bd9b2a1 100644
--- a/inffast.c
+++ b/inffast.c
@@ -138,7 +138,7 @@ void ZLIB_INTERNAL inflate_fast(PREFIX3(stream) *strm, unsigned long start) {
end = out + (strm->avail_out - (INFLATE_FAST_MIN_LEFT - 1));
#ifdef INFFAST_CHUNKSIZE
- safe = out + (strm->avail_out - INFFAST_CHUNKSIZE);
+ safe = out + strm->avail_out;
#endif
#ifdef INFLATE_STRICT
dmax = state->dmax;