diff options
Diffstat (limited to 'engines/wintermute/base')
-rw-r--r-- | engines/wintermute/base/base_string_table.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/base/base_string_table.cpp b/engines/wintermute/base/base_string_table.cpp index bcdd7cb861..4c750ebc93 100644 --- a/engines/wintermute/base/base_string_table.cpp +++ b/engines/wintermute/base/base_string_table.cpp @@ -149,7 +149,7 @@ void BaseStringTable::expand(char **str) const { ////////////////////////////////////////////////////////////////////////// void BaseStringTable::expand(Common::String &str) const { - char *tmp = new char[str.size()]; + char *tmp = new char[str.size()+1]; strcpy(tmp, str.c_str()); expand(&tmp); str = tmp; |