summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-06-24 18:24:37 +0200
committerTomaž Vajngerl <quikee@gmail.com>2020-08-10 23:07:32 +0200
commitf271eca1eb24ed28658afe4c73d71cbf77a78dec (patch)
treec1d1fd7917d52e72438ff8691aeff16ccb50218b /tools
parent29954dbeb16ef206940a8fe7ed94e487f842d17a (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> (cherry picked from commit 3fb5c11ac69e6687e579d4129cb892c5ae746a5e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100445 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
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 251c44c0246f..f2b008ea6fd2 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,