cvs: php-src(PHP_5_0) /ext/zlib zlib.c

From: Date: Sun, 21 Aug 2005 16:04:39 +0000
Subject: cvs: php-src(PHP_5_0) /ext/zlib zlib.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-33571@lists.php.net to get a copy of this message
iliaa Sun Aug 21 12:04:39 2005 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/zlib zlib.c Log: MFH: Fixed bug #34191 (ob_gzhandler does not enforce trailing \0). http://cvs.php.net/diff.php/php-src/ext/zlib/zlib.c?r1=1.181&r2=1.181.2.1&ty=u Index: php-src/ext/zlib/zlib.c diff -u php-src/ext/zlib/zlib.c:1.181 php-src/ext/zlib/zlib.c:1.181.2.1 --- php-src/ext/zlib/zlib.c:1.181 Thu Jan 8 03:17:52 2004 +++ php-src/ext/zlib/zlib.c Sun Aug 21 12:04:38 2005 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zlib.c,v 1.181 2004/01/08 08:17:52 andi Exp $ */ +/* $Id: zlib.c,v 1.181.2.1 2005/08/21 16:04:38 iliaa Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -640,6 +640,7 @@ if (do_end) { err = deflate(&ZLIBG(stream), Z_FINISH); + buffer[outlen - ZLIBG(stream).avail_out] = '\0'; } *p_buffer = buffer;

« previous php.cvs (#33571) next »