Increase size of ignored buffer space at the end. 16 bytes at the time means 16 bytes of buffer space.
This commit is contained in:
parent
8133e9b41d
commit
568226ca1f
4
rewind.c
4
rewind.c
|
@ -124,8 +124,8 @@ state_manager_t *state_manager_new(size_t state_size, size_t buffer_size)
|
|||
|
||||
state->data = (char*)malloc(buffer_size);
|
||||
|
||||
state->thisblock = (char*)calloc(state->blocksize+sizeof(uint16_t)*8, 1);
|
||||
state->nextblock = (char*)calloc(state->blocksize+sizeof(uint16_t)*8, 1);
|
||||
state->thisblock = (char*)calloc(state->blocksize+sizeof(uint16_t)*4+16, 1);
|
||||
state->nextblock = (char*)calloc(state->blocksize+sizeof(uint16_t)*4+16, 1);
|
||||
if (!state->data || !state->thisblock || !state->nextblock)
|
||||
{
|
||||
free(state->data);
|
||||
|
|
Loading…
Reference in New Issue