mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
fix: fixed error in realloc
This commit is contained in:
parent
c9f086f6cf
commit
f8e183ed13
@ -71,7 +71,7 @@ wfp_impl_json_writer_reserve(
|
||||
}
|
||||
|
||||
writer->raw_data = realloc(writer->raw_data, writer->pre + new_capacity);
|
||||
writer->data = &(writer->data[writer->pre]);
|
||||
writer->data = &(writer->raw_data[writer->pre]);
|
||||
writer->capacity = new_capacity;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user