Bug fix, slice was being used incorrectly which caused a missing internal character when combining object contents.

This commit is contained in:
Stephen Atherton 2018-09-09 22:53:12 -07:00
parent 2afd4cffb9
commit e9c86ee638
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ protected:
// Add everything but the first byte of the first string in arr
bytes += other.bytes - 1;
const VString &front = other.jsonText.front();
jsonText.push_back(arena, front.slice(1, front.size() - 1));
jsonText.push_back(arena, front.slice(1, front.size()));
jsonText.append(arena, other.jsonText.begin() + 1, other.jsonText.size() - 1);
// Both JsonBuilders would now want to write to the same additional VString capacity memory