From: Ilia Alshanetsky Date: Fri, 2 Sep 2005 17:25:33 +0000 (+0000) Subject: MFH: Resolved bug #34240. X-Git-Tag: php-4.4.1RC1~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32aced596aee864297b5eda00f7fde86e4b3eb01;p=php MFH: Resolved bug #34240. --- 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'; }