From 1c307a8a9e7874fb532fdd455e55a9aab3fe4ec9 Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Sat, 29 Apr 2006 14:38:35 +0000 Subject: [PATCH] fix build. ZSTR() must be applied to the buf argument of php_stream macros --- ext/zlib/zlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0