summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-09-02 17:25:16 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-09-02 17:25:16 +0000
commit2b32ff53cdbb722d945f7fd437ddfc13c4e62839 (patch)
tree95d4384cca006e56dc989e691fc6d2b01c9210e5
parentabcfcd3f2e6c710412c34c5cfe7612b3246f3167 (diff)
downloadphp-git-2b32ff53cdbb722d945f7fd437ddfc13c4e62839.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 ff68743ccd..20f2258c5c 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -644,7 +644,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;