diff options
author | Eugene Sandulenko | 2016-05-11 12:30:50 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-11 12:30:50 +0200 |
commit | 775b615fdd786f67b3a784a8364f06afd7d71e97 (patch) | |
tree | 0efcf180cc467d63ae4ac6a6c0c66d631837da3d | |
parent | 42db1618fdf5680a9204af1685abc5ba7fc262cb (diff) | |
download | scummvm-rg350-775b615fdd786f67b3a784a8364f06afd7d71e97.tar.gz scummvm-rg350-775b615fdd786f67b3a784a8364f06afd7d71e97.tar.bz2 scummvm-rg350-775b615fdd786f67b3a784a8364f06afd7d71e97.zip |
CRUISE: Safer string manipulation
-rw-r--r-- | engines/cruise/ctp.cpp | 2 |
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 |