aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/inter_v1.cpp
diff options
context:
space:
mode:
authorSven Hesse2007-03-30 17:52:31 +0000
committerSven Hesse2007-03-30 17:52:31 +0000
commitd65e05841a324d2ec898a3662f40e193fbc77e47 (patch)
tree55d85a458c0559e6c3d3b060dd54f7385562867a /engines/gob/inter_v1.cpp
parent33c6a6f46057748a30a143c9eb5dc1f86c813e32 (diff)
downloadscummvm-rg350-d65e05841a324d2ec898a3662f40e193fbc77e47.tar.gz
scummvm-rg350-d65e05841a324d2ec898a3662f40e193fbc77e47.tar.bz2
scummvm-rg350-d65e05841a324d2ec898a3662f40e193fbc77e47.zip
- Fixed the IMD playing within mults, the non-interactive Gob3 demo should work better now
- Replaced strcpy with strncpy where appropriate - Added detection entries for other languages of the multilingual Gob3 CD; bug #1691230 svn-id: r26327
Diffstat (limited to 'engines/gob/inter_v1.cpp')
-rw-r--r--engines/gob/inter_v1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/inter_v1.cpp b/engines/gob/inter_v1.cpp
index d5bc59fe19..76ba0184d7 100644
--- a/engines/gob/inter_v1.cpp
+++ b/engines/gob/inter_v1.cpp
@@ -1432,7 +1432,7 @@ bool Inter_v1::o1_loadTot(OpFuncParams &params) {
if ((*_vm->_global->_inter_execPtr & 0x80) != 0) {
_vm->_global->_inter_execPtr++;
evalExpr(0);
- strcpy(buf, _vm->_global->_inter_resStr);
+ strncpy0(buf, _vm->_global->_inter_resStr, 15);
} else {
size = *_vm->_global->_inter_execPtr++;
for (int i = 0; i < size; i++)
@@ -1948,7 +1948,7 @@ bool Inter_v1::o1_strToLong(OpFuncParams &params) {
int32 res;
strVar = _vm->_parse->parseVarIndex();
- strcpy(str, GET_VARO_STR(strVar));
+ strncpy0(str, GET_VARO_STR(strVar), 19);
res = atol(str);
destVar = _vm->_parse->parseVarIndex();