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;