From c5f610e3b1937b00034892ee4643a750df1b1241 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Fri, 2 Jan 2015 19:42:35 -0800 Subject: [PATCH] Fix extra character being reserved in plString::Fill --- Sources/Plasma/CoreLib/plString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Plasma/CoreLib/plString.cpp b/Sources/Plasma/CoreLib/plString.cpp index 512e7db2..9b179949 100644 --- a/Sources/Plasma/CoreLib/plString.cpp +++ b/Sources/Plasma/CoreLib/plString.cpp @@ -838,7 +838,7 @@ std::vector plString::Split(const char *split, size_t maxSplits) const plString plString::Fill(size_t count, char c) { plStringBuffer buf; - char *data = buf.CreateWritableBuffer(count + 1); + char *data = buf.CreateWritableBuffer(count); memset(data, c, count); data[count] = 0; return buf;