mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-21 03:11:03 +00:00
ADD to the buffer size
(cherry picked from commit bae37aea2c1b1ffab22f79e27415914f7e25fc89)
This commit is contained in:
parent
ab3878e282
commit
2f30e81fdd
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