diff options
author | Eugene Sandulenko | 2013-04-26 08:04:38 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-04-26 08:04:38 +0300 |
commit | 9b8aa5e1355af3e52f48ed9860675a0a392d83ce (patch) | |
tree | d6f526060d90d0d7b43fd42fc9b6b822bf1f428f /engines/cine | |
parent | a8a267b6681343cde3dfdaf3251953a3055fbdff (diff) | |
download | scummvm-rg350-9b8aa5e1355af3e52f48ed9860675a0a392d83ce.tar.gz scummvm-rg350-9b8aa5e1355af3e52f48ed9860675a0a392d83ce.tar.bz2 scummvm-rg350-9b8aa5e1355af3e52f48ed9860675a0a392d83ce.zip |
CINE: Null terminate string. CID 1003886
Diffstat (limited to 'engines/cine')
-rw-r--r-- | engines/cine/various.cpp | 2 |
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); |