]> granicus.if.org Git - php/commitdiff
Probable fix for #19944
authorWez Furlong <wez@php.net>
Sat, 19 Oct 2002 10:34:10 +0000 (10:34 +0000)
committerWez Furlong <wez@php.net>
Sat, 19 Oct 2002 10:34:10 +0000 (10:34 +0000)
main/streams.c

index e71a42585c4ef47e790fef5c89ac8286303f66f3..9e61916bd9a3cf972bb3826402c0899c191e112c 100755 (executable)
@@ -495,7 +495,7 @@ static void php_stream_fill_read_buffer(php_stream *stream, size_t size TSRMLS_D
                                        TSRMLS_CC);
                }
 
-               if (justread > 0) {
+               if (justread != (size_t)-1) {
                        stream->writepos += justread;
                }
        }