aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-04-26 08:04:38 +0300
committerEugene Sandulenko2013-04-26 08:04:38 +0300
commit9b8aa5e1355af3e52f48ed9860675a0a392d83ce (patch)
treed6f526060d90d0d7b43fd42fc9b6b822bf1f428f
parenta8a267b6681343cde3dfdaf3251953a3055fbdff (diff)
downloadscummvm-rg350-9b8aa5e1355af3e52f48ed9860675a0a392d83ce.tar.gz
scummvm-rg350-9b8aa5e1355af3e52f48ed9860675a0a392d83ce.tar.bz2
scummvm-rg350-9b8aa5e1355af3e52f48ed9860675a0a392d83ce.zip
CINE: Null terminate string. CID 1003886
-rw-r--r--engines/cine/various.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cine/various.cpp b/engines/cine/various.cpp
index 23f439a7a7..99d93cfc09 100644
--- a/engines/cine/various.cpp
+++ b/engines/cine/various.cpp
@@ -427,7 +427,7 @@ void CineEngine::makeSystemMenu() {
if (!makeTextEntryMenu(otherMessages[6], saveName, 20, 120))
break;
- strncpy(currentSaveName[selectedSave], saveName, 20);
+ Common::strlcpy(currentSaveName[selectedSave], saveName, 20);
sprintf(saveFileName, "%s.%1d", _targetName.c_str(), selectedSave);