From ba466216f58ab8d61e329357a6d1f0315fc72c02 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sat, 7 Feb 2015 12:25:56 +0100 Subject: [PATCH] fix assertion --- php_http_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2