diff --git a/CppUnitLite/SimpleString.cpp b/CppUnitLite/SimpleString.cpp index 190010d87..3fa040f63 100644 --- a/CppUnitLite/SimpleString.cpp +++ b/CppUnitLite/SimpleString.cpp @@ -51,7 +51,7 @@ SimpleString SimpleString::operator+ (const SimpleString& other) { SimpleString ret; delete [] ret.buffer_; - ret.buffer_ = new char [size() + other.size() - 1]; + ret.buffer_ = new char [size() + other.size() + 1]; strcpy(ret.buffer_, buffer_); strcat(ret.buffer_, other.buffer_); return ret;