fix assertion
[m6w6/ext-http] / php_http_buffer.c
index 00ec4b4182d034236b8cf56e6463d6d3226aac4d..e24a4e18baa2e4d7e7a6c8cbdbf7d7c7967fc31b 100644 (file)
@@ -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;