diff options
author | Eugene Sandulenko | 2013-04-26 08:01:07 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-04-26 08:01:07 +0300 |
commit | f70509e20bb4fb809cff5ae4bb9fdc47dd85e1e0 (patch) | |
tree | 5558126565293ea0c004ca62805a00719ff6458f /engines/cine/detection.cpp | |
parent | eb3d556e15cfc463b1fd0a2edee3c2493bf7cded (diff) | |
download | scummvm-rg350-f70509e20bb4fb809cff5ae4bb9fdc47dd85e1e0.tar.gz scummvm-rg350-f70509e20bb4fb809cff5ae4bb9fdc47dd85e1e0.tar.bz2 scummvm-rg350-f70509e20bb4fb809cff5ae4bb9fdc47dd85e1e0.zip |
CINE: Null terminate string. CID 1003887
Diffstat (limited to 'engines/cine/detection.cpp')
-rw-r--r-- | engines/cine/detection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cine/detection.cpp b/engines/cine/detection.cpp index 823b8e38b5..a3d36cfd97 100644 --- a/engines/cine/detection.cpp +++ b/engines/cine/detection.cpp @@ -184,7 +184,7 @@ void CineMetaEngine::removeSaveState(const char *target, int slot) const { // Set description for selected slot char slotName[20]; slotName[0] = 0; - strncpy(saveNames[slot], slotName, 20); + Common::strlcpy(saveNames[slot], slotName, 20); // Update savegame descriptions Common::String indexFile = Common::String::format("%s.dir", target); |