Skip to content

Commit 1c307a8

Browse files
committed
fix build. ZSTR() must be applied to the buf argument of php_stream macros
1 parent 611d8b7 commit 1c307a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/zlib/zlib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ PHP_FUNCTION(gzfile)
305305
/* Now loop through the file and do the magic quotes thing if needed */
306306
memset(buf,0,sizeof(buf));
307307

308-
while (php_stream_gets(stream, buf, sizeof(buf) - 1) != NULL) {
308+
while (php_stream_gets(stream, ZSTR(buf), sizeof(buf) - 1) != NULL) {
309309
add_index_string(return_value, i++, buf, 1);
310310
}
311311
php_stream_close(stream);

0 commit comments

Comments
 (0)