diff options
author | Einar Johan Trøan Sømåen | 2013-04-17 17:11:44 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-04-17 17:11:44 +0200 |
commit | 3ff6af3dde774fa1bad00e11c88009fd3ec2bff1 (patch) | |
tree | ead9184d6853bc0990eb0cdd1c39fb59db8c6912 /engines/wintermute/base/scriptables | |
parent | 6ccfac7e3349733b5ef0b5c3bd320a1313a575cc (diff) | |
download | scummvm-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/scriptables')
-rw-r--r-- | engines/wintermute/base/scriptables/script_ext_string.cpp | 2 |
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); |