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:
Alcaro 2014-02-22 17:15:28 +01:00
parent 8133e9b41d
commit 568226ca1f
1 changed files with 2 additions and 2 deletions

View File

@ -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);