aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2013-04-17 17:11:44 +0200
committerEinar Johan Trøan Sømåen2013-04-17 17:11:44 +0200
commit3ff6af3dde774fa1bad00e11c88009fd3ec2bff1 (patch)
treeead9184d6853bc0990eb0cdd1c39fb59db8c6912 /engines/wintermute/base
parent6ccfac7e3349733b5ef0b5c3bd320a1313a575cc (diff)
downloadscummvm-rg350-3ff6af3dde774fa1bad00e11c88009fd3ec2bff1.tar.gz
scummvm-rg350-3ff6af3dde774fa1bad00e11c88009fd3ec2bff1.tar.bz2
scummvm-rg350-3ff6af3dde774fa1bad00e11c88009fd3ec2bff1.zip
WINTERMUTE: Use strlcpy instead of strcpy in SXString::scCallMethod()
Diffstat (limited to 'engines/wintermute/base')
-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);