From: Michael Wallner Date: Sat, 7 Feb 2015 11:25:56 +0000 (+0100) Subject: fix assertion X-Git-Tag: RELEASE_2_2_1 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=ba466216f58ab8d61e329357a6d1f0315fc72c02 fix assertion --- 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;