mirror of
https://github.com/falk-werner/webfuse-provider
synced 2026-03-02 04:09:18 +00:00
fix: fixed error in realloc
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user