]> granicus.if.org Git - php/commitdiff
fix condition
authorAnatol Belski <ab@php.net>
Sat, 13 Sep 2014 15:35:59 +0000 (17:35 +0200)
committerAnatol Belski <ab@php.net>
Sat, 13 Sep 2014 21:21:38 +0000 (23:21 +0200)
substraction of two unsigned

ext/standard/filters.c

index b59c1f3c12ab8a901718c01d139d4948a3892c55..7f481213162c0f7696a0f1ddda263d937236e5e0 100644 (file)
@@ -1699,7 +1699,7 @@ static int strfilter_convert_append_bucket(
                }
        }
 
-       if (out_buf_size - ocnt > 0) {
+       if (out_buf_size > ocnt) {
                if (NULL == (new_bucket = php_stream_bucket_new(stream, out_buf, (out_buf_size - ocnt), 1, persistent TSRMLS_CC))) {
                        goto out_failure;
                }