mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
ADD to the buffer size
This commit is contained in:
parent
44af4705bb
commit
3cdc6d07d0
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…
Add table
Reference in a new issue