diff --git a/ext/bz2/bz2.c b/ext/bz2/bz2.c index 512632fe8a22..6af8286c5335 100644 --- a/ext/bz2/bz2.c +++ b/ext/bz2/bz2.c @@ -544,7 +544,7 @@ PHP_FUNCTION(bzdecompress) /* no reason to continue if we're going to drop it anyway */ break; } - dest = zend_string_safe_realloc(dest, 1, bzs.avail_out+1, (size_t) size, 0); + dest = zend_string_safe_realloc(dest, 1, (size_t) bzs.avail_out + 1, (size_t) size, 0); bzs.next_out = ZSTR_VAL(dest) + size; }