aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-04-26 08:01:07 +0300
committerEugene Sandulenko2013-04-26 08:01:07 +0300
commitf70509e20bb4fb809cff5ae4bb9fdc47dd85e1e0 (patch)
tree5558126565293ea0c004ca62805a00719ff6458f
parenteb3d556e15cfc463b1fd0a2edee3c2493bf7cded (diff)
downloadscummvm-rg350-f70509e20bb4fb809cff5ae4bb9fdc47dd85e1e0.tar.gz
scummvm-rg350-f70509e20bb4fb809cff5ae4bb9fdc47dd85e1e0.tar.bz2
scummvm-rg350-f70509e20bb4fb809cff5ae4bb9fdc47dd85e1e0.zip
CINE: Null terminate string. CID 1003887
-rw-r--r--engines/cine/detection.cpp2
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);