1
0
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:
Falk Werner 2020-07-09 22:34:18 +02:00
parent c9f086f6cf
commit f8e183ed13

View File

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