summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-06-24 18:24:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-06-24 22:16:45 +0200
commit3fb5c11ac69e6687e579d4129cb892c5ae746a5e (patch)
tree4bd637b53ac3c4a4be4eafd04b41eb9a0eeefb43 /tools
parent7e4a3eee79b49216696f8c51bf833eee3e06a803 (diff)
fix JsonWriter::reallocBuffer
was not updating mSpaceAllocated Change-Id: Ie5404e58c6520d32b72c19ddfa58b2ab2b895199 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97049 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/misc/json_writer.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/source/misc/json_writer.cxx b/tools/source/misc/json_writer.cxx
index 95c8b59e5d02..be891ef18423 100644
--- a/tools/source/misc/json_writer.cxx
+++ b/tools/source/misc/json_writer.cxx
@@ -320,6 +320,7 @@ void JsonWriter::reallocBuffer(int noMoreBytesRequired)
free(mpBuffer);
mpBuffer = pNew;
mPos = mpBuffer + currentUsed;
+ mSpaceAllocated = newSize;
}
/** Hands ownership of the underlying storage buffer to the caller,