cvs: php-src /ext/zlib zlib.c
| From: | Frank M. Kromann | Date: | Sat, 29 Apr 2006 14:38:35 +0000 |
| Subject: | cvs: php-src /ext/zlib zlib.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-37958@lists.php.net to get a copy of this message | ||
fmk Sat Apr 29 14:38:35 2006 UTC
Modified files:
/php-src/ext/zlib zlib.c
Log:
fix build. ZSTR() must be applied to the buf argument of php_stream macros
http://cvs.php.net/viewcvs.cgi/php-src/ext/zlib/zlib.c?r1=1.192&r2=1.193&diff_format=u
Index: php-src/ext/zlib/zlib.c
diff -u php-src/ext/zlib/zlib.c:1.192 php-src/ext/zlib/zlib.c:1.193
--- php-src/ext/zlib/zlib.c:1.192 Wed Mar 8 14:41:45 2006
+++ php-src/ext/zlib/zlib.c Sat Apr 29 14:38:35 2006
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zlib.c,v 1.192 2006/03/08 14:41:45 iliaa Exp $ */
+/* $Id: zlib.c,v 1.193 2006/04/29 14:38:35 fmk Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -305,7 +305,7 @@
/* Now loop through the file and do the magic quotes thing if needed */
memset(buf,0,sizeof(buf));
- while (php_stream_gets(stream, buf, sizeof(buf) - 1) != NULL) {
+ while (php_stream_gets(stream, ZSTR(buf), sizeof(buf) - 1) != NULL) {
add_index_string(return_value, i++, buf, 1);
}
php_stream_close(stream);