fix: fixed error in realloc

pull/3/head
Falk Werner 4 years ago
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…
Cancel
Save