aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/scriptables/script_ext_string.cpp
diff options
context:
space:
mode:
authorjohndoe1232013-04-18 19:08:22 +0200
committerjohndoe1232013-04-18 19:08:22 +0200
commit176a3babc553d1d6eb2a57fddb0a9665fc4aaa71 (patch)
tree239f044793de424c8ca50e739beab44b122609c6 /engines/wintermute/base/scriptables/script_ext_string.cpp
parente935f85366ba1e83fdd1cea3712959edee1f6270 (diff)
parent6c55213cd5a63ff198a25573ad38672e7faa02ce (diff)
downloadscummvm-rg350-176a3babc553d1d6eb2a57fddb0a9665fc4aaa71.tar.gz
scummvm-rg350-176a3babc553d1d6eb2a57fddb0a9665fc4aaa71.tar.bz2
scummvm-rg350-176a3babc553d1d6eb2a57fddb0a9665fc4aaa71.zip
Merge branch 'master' of github.com:scummvm/scummvm into sword25-gfx
Diffstat (limited to 'engines/wintermute/base/scriptables/script_ext_string.cpp')
-rw-r--r--engines/wintermute/base/scriptables/script_ext_string.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/base/scriptables/script_ext_string.cpp b/engines/wintermute/base/scriptables/script_ext_string.cpp
index 71544a20aa..7cb3b9360b 100644
--- a/engines/wintermute/base/scriptables/script_ext_string.cpp
+++ b/engines/wintermute/base/scriptables/script_ext_string.cpp
@@ -270,7 +270,7 @@ bool SXString::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack
ScValue *val = stack->pop();
char separators[MAX_PATH_LENGTH] = ",";
if (!val->isNULL()) {
- strcpy(separators, val->getString());
+ Common::strlcpy(separators, val->getString(), MAX_PATH_LENGTH);
}
SXArray *array = new SXArray(_gameRef);