]> granicus.if.org Git - php/commitdiff
fix condition
authorAnatol Belski <ab@php.net>
Sat, 13 Sep 2014 16:20:24 +0000 (18:20 +0200)
committerAnatol Belski <ab@php.net>
Sat, 13 Sep 2014 21:21:43 +0000 (23:21 +0200)
comparsion of two unsigned

ext/iconv/iconv.c

index e1bf9deede9df26a0ade1b2f5461cdea6aa1c337..92ccb5e2cfa3dad15a5f50e814389733dff4e2d1 100644 (file)
@@ -2761,7 +2761,7 @@ static int php_iconv_stream_filter_append_bucket(
                prev_ocnt = ocnt;
        }
 
-       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;
                }