aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-11 12:30:50 +0200
committerEugene Sandulenko2016-05-11 12:30:50 +0200
commit775b615fdd786f67b3a784a8364f06afd7d71e97 (patch)
tree0efcf180cc467d63ae4ac6a6c0c66d631837da3d /engines
parent42db1618fdf5680a9204af1685abc5ba7fc262cb (diff)
downloadscummvm-rg350-775b615fdd786f67b3a784a8364f06afd7d71e97.tar.gz
scummvm-rg350-775b615fdd786f67b3a784a8364f06afd7d71e97.tar.bz2
scummvm-rg350-775b615fdd786f67b3a784a8364f06afd7d71e97.zip
CRUISE: Safer string manipulation
Diffstat (limited to 'engines')
-rw-r--r--engines/cruise/ctp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cruise/ctp.cpp b/engines/cruise/ctp.cpp
index 9515b552e1..4458e39e91 100644
--- a/engines/cruise/ctp.cpp
+++ b/engines/cruise/ctp.cpp
@@ -307,7 +307,7 @@ int initCt(const char *ctpName) {
MemFree(ptr);
if (ctpName != currentCtpName)
- strcpy(currentCtpName, ctpName);
+ Common::strlcpy(currentCtpName, ctpName, 40);
numberOfWalkboxes = segementSizeTable[6] / 2; // get the number of walkboxes