cvs: php-src(PHP_5_1) /ext/zlib zlib.c
| From: | Michael Wallner | Date: | Tue, 25 Oct 2005 15:35:39 +0000 |
| Subject: | cvs: php-src(PHP_5_1) /ext/zlib zlib.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-34779@lists.php.net to get a copy of this message | ||
mike Tue Oct 25 11:35:39 2005 EDT
Modified files: (Branch: PHP_5_1)
/php-src/ext/zlib zlib.c
Log:
- fix the fix
http://cvs.php.net/diff.php/php-src/ext/zlib/zlib.c?r1=1.183.2.3&r2=1.183.2.4&ty=u
Index: php-src/ext/zlib/zlib.c
diff -u php-src/ext/zlib/zlib.c:1.183.2.3 php-src/ext/zlib/zlib.c:1.183.2.4
--- php-src/ext/zlib/zlib.c:1.183.2.3 Tue Oct 25 11:16:20 2005
+++ php-src/ext/zlib/zlib.c Tue Oct 25 11:35:39 2005
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zlib.c,v 1.183.2.3 2005/10/25 15:16:20 mike Exp $ */
+/* $Id: zlib.c,v 1.183.2.4 2005/10/25 15:35:39 mike Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -625,7 +625,7 @@
int start_offset = ((do_start && ZLIBG(compression_coding) == CODING_GZIP) ? 10 : 0);
int end_offset = (do_end ? 8 : 0);
- outlen = (uint) (sizeof(char) * (str_length / PHP_ZLIB_MODIFIER + 12) + 1); /* leave some room for
a trailing \0 */
+ outlen = (uint) (str_length + (str_length / PHP_ZLIB_MODIFIER) + 12 + 1); /* leave some room for a
trailing \0 */
if ((outlen + start_offset + end_offset) > *p_buffer_len) {
buffer = (Bytef *) emalloc(outlen + start_offset + end_offset);
} else {