aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/base/base_string_table.cpp2
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;