ADD to the buffer size
(cherry picked from commit bae37aea2c1b1ffab22f79e27415914f7e25fc89)
This commit is contained in:
parent
ab3878e282
commit
2f30e81fdd
|
@ -88,7 +88,7 @@ HMS_on_read (char *s, size_t _1, size_t n, void *userdata)
|
||||||
{
|
{
|
||||||
/* resize to next multiple of buffer size */
|
/* resize to next multiple of buffer size */
|
||||||
blocks = ( n / DEFAULT_BUFFER_SIZE + 1 );
|
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);
|
buffer->buffer = realloc(buffer->buffer, buffer->end);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue