mirror of
https://github.com/php/php-src.git
synced 2026-04-24 08:28:26 +02:00
MFH: Resolved bug #34240.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user