summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-09-02 17:25:22 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-09-02 17:25:22 +0000
commitb905940f9f08caad8348bdb966f5dc80cff059f7 (patch)
treee2d5d1e1d14c1061da1009562bad1f833a5265ef
parent0904130f118feb8ab8242c8a7c46a21c96b97676 (diff)
downloadphp-git-b905940f9f08caad8348bdb966f5dc80cff059f7.tar.gz
MFh: Resolved bug #34240.
-rw-r--r--ext/zlib/zlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 6fda1350b1..0566412d70 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -640,7 +640,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';
}
*p_buffer = buffer;