aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cruise/function.cpp')
-rw-r--r--engines/cruise/function.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp
index 3d07abf441..0b25ee59c1 100644
--- a/engines/cruise/function.cpp
+++ b/engines/cruise/function.cpp
@@ -58,17 +58,15 @@ int16 Op_LoadOverlay() {
updateAllScriptsImports();
- strcpy(nextOverlay, overlayName);
+ Common::strlcpy(nextOverlay, overlayName, sizeof(nextOverlay));
- return(overlayLoadResult);
+ return overlayLoadResult;
}
int16 Op_Strcpy() {
char *ptr1 = (char *)popPtr();
char *ptr2 = (char *)popPtr();
- //printf("strcpy %s\n",ptr1);
-
while (*ptr1) {
*ptr2 = *ptr1;
@@ -1994,7 +1992,6 @@ int32 opcodeType8() {
return (-21);
if (opcode < ARRAYSIZE(opcodeTablePtr) && opcodeTablePtr[opcode]) {
- // printf("Function: %d\n",opcode);
pushVar(opcodeTablePtr[opcode]());
return (0);
} else {