mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 05:11:34 +00:00
ADD to the buffer size
This commit is contained in:
parent
e7d949aeb2
commit
bae37aea2c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue