diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-09-02 17:25:22 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-09-02 17:25:22 +0000 |
commit | b905940f9f08caad8348bdb966f5dc80cff059f7 (patch) | |
tree | e2d5d1e1d14c1061da1009562bad1f833a5265ef | |
parent | 0904130f118feb8ab8242c8a7c46a21c96b97676 (diff) | |
download | php-git-b905940f9f08caad8348bdb966f5dc80cff059f7.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 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; |