mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
CINE: Null terminate string. CID 1003886
This commit is contained in:
parent
a8a267b668
commit
9b8aa5e135
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user