X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_buffer.c;h=e24a4e18baa2e4d7e7a6c8cbdbf7d7c7967fc31b;hp=00ec4b4182d034236b8cf56e6463d6d3226aac4d;hb=ba466216f58ab8d61e329357a6d1f0315fc72c02;hpb=6a206380b376a202ed243dd730d4433186a55a1d diff --git a/php_http_buffer.c b/php_http_buffer.c index 00ec4b4..e24a4e1 100644 --- a/php_http_buffer.c +++ b/php_http_buffer.c @@ -74,7 +74,7 @@ PHP_HTTP_BUFFER_API size_t php_http_buffer_resize_ex(php_http_buffer_t *buf, siz PHP_HTTP_BUFFER_API char *php_http_buffer_account(php_http_buffer_t *buf, size_t to_account) { - assert(to_account < buf->free); + assert(to_account <= buf->free); buf->free -= to_account; buf->used += to_account;