- 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
This commit is contained in:
parent
33c6a6f460
commit
d65e05841a
19 changed files with 136 additions and 62 deletions
|
@ -1432,7 +1432,7 @@ bool Inter_v1::o1_loadTot(OpFuncParams ¶ms) {
|
|||
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 ¶ms) {
|
|||
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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue