From e9c86ee638c729b00e58298ce46a6339162e9463 Mon Sep 17 00:00:00 2001 From: Stephen Atherton Date: Sun, 9 Sep 2018 22:53:12 -0700 Subject: [PATCH] Bug fix, slice was being used incorrectly which caused a missing internal character when combining object contents. --- fdbclient/JsonString.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdbclient/JsonString.h b/fdbclient/JsonString.h index dd4f61561e..30e0ae2a3a 100755 --- a/fdbclient/JsonString.h +++ b/fdbclient/JsonString.h @@ -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