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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp
index 3d07abf441..7c8f8af942 100644
--- a/engines/cruise/function.cpp
+++ b/engines/cruise/function.cpp
@@ -58,9 +58,9 @@ int16 Op_LoadOverlay() {
updateAllScriptsImports();
- strcpy(nextOverlay, overlayName);
+ strncpy(nextOverlay, overlayName, 38);
- return(overlayLoadResult);
+ return overlayLoadResult;
}
int16 Op_Strcpy() {