fixed off by one in skip
This commit is contained in:
parent
0e02a3466e
commit
35870a1ca9
|
@ -89,7 +89,7 @@ void sw_skip_destroy(struct sw_skip *skip) {
|
|||
void sw_skip_add(struct sw_skip *skip, u8 *data, u32 data_size, char *name) {
|
||||
u32 off;
|
||||
|
||||
off = skip->data_size + 1;
|
||||
off = skip->data_size;
|
||||
|
||||
skip->data_size += data_size;
|
||||
skip->data = realloc(skip->data, skip->data_size);
|
||||
|
|
Loading…
Reference in New Issue