summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2006-04-29 14:38:35 +0000
committerFrank M. Kromann <fmk@php.net>2006-04-29 14:38:35 +0000
commit1c307a8a9e7874fb532fdd455e55a9aab3fe4ec9 (patch)
treec967e64562491efd7d506eb3ab0c8e526260ab16
parent611d8b7cfab5cd1bef62b868d8ec0a0c6381de08 (diff)
downloadphp-git-1c307a8a9e7874fb532fdd455e55a9aab3fe4ec9.tar.gz
fix build. ZSTR() must be applied to the buf argument of php_stream macros
-rw-r--r--ext/zlib/zlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 0baf5e1961..cdeab4263c 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -305,7 +305,7 @@ PHP_FUNCTION(gzfile)
/* 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);