]> granicus.if.org Git - php/commitdiff
fix build. ZSTR() must be applied to the buf argument of php_stream macros
authorFrank M. Kromann <fmk@php.net>
Sat, 29 Apr 2006 14:38:35 +0000 (14:38 +0000)
committerFrank M. Kromann <fmk@php.net>
Sat, 29 Apr 2006 14:38:35 +0000 (14:38 +0000)
ext/zlib/zlib.c

index 0baf5e1961eb63086ffc2589068b593573b710b4..cdeab4263c31040d7a34ae5b7fb2033210ffcae7 100644 (file)
@@ -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);