From bae37aea2c1b1ffab22f79e27415914f7e25fc89 Mon Sep 17 00:00:00 2001 From: James R Date: Sun, 14 Jun 2020 19:13:22 -0700 Subject: [PATCH] ADD to the buffer size --- src/http-mserv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http-mserv.c b/src/http-mserv.c index a9009bd2..9d05b80e 100644 --- a/src/http-mserv.c +++ b/src/http-mserv.c @@ -88,7 +88,7 @@ HMS_on_read (char *s, size_t _1, size_t n, void *userdata) { /* resize to next multiple of buffer size */ blocks = ( n / DEFAULT_BUFFER_SIZE + 1 ); - buffer->end = ( blocks * DEFAULT_BUFFER_SIZE ); + buffer->end += ( blocks * DEFAULT_BUFFER_SIZE ); buffer->buffer = realloc(buffer->buffer, buffer->end); }