From 32aced596aee864297b5eda00f7fde86e4b3eb01 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Fri, 2 Sep 2005 17:25:33 +0000 Subject: [PATCH] MFH: Resolved bug #34240. --- ext/zlib/zlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 0341043d97..fe46878371 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -717,7 +717,7 @@ static int php_do_deflate(uint str_length, Bytef **p_buffer, uint *p_buffer_len, if (do_end) { err = deflate(&ZLIBG(stream), Z_FINISH); - buffer[outlen - ZLIBG(stream).avail_out] = '\0'; + buffer[outlen + start_offset - ZLIBG(stream).avail_out] = '\0'; } -- 2.40.0