From f8e183ed135da7b69dc9e2cbb8a3531be7f8b7ce Mon Sep 17 00:00:00 2001 From: Falk Werner Date: Thu, 9 Jul 2020 22:34:18 +0200 Subject: [PATCH] fix: fixed error in realloc --- lib/webfuse_provider/impl/json/writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/webfuse_provider/impl/json/writer.c b/lib/webfuse_provider/impl/json/writer.c index 9b151e4..ba809dd 100644 --- a/lib/webfuse_provider/impl/json/writer.c +++ b/lib/webfuse_provider/impl/json/writer.c @@ -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; } }