diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-09-02 17:25:16 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-09-02 17:25:16 +0000 |
commit | 2b32ff53cdbb722d945f7fd437ddfc13c4e62839 (patch) | |
tree | 95d4384cca006e56dc989e691fc6d2b01c9210e5 | |
parent | abcfcd3f2e6c710412c34c5cfe7612b3246f3167 (diff) | |
download | php-git-2b32ff53cdbb722d945f7fd437ddfc13c4e62839.tar.gz |
MFH: Resolved bug #34240.
-rw-r--r-- | ext/zlib/zlib.c | 2 |
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; |