diff options
-rw-r--r-- | tools/source/misc/json_writer.cxx | 1 |
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, |