CINE: Null terminate string. CID 1003886

This commit is contained in:
Eugene Sandulenko 2013-04-26 08:04:38 +03:00
parent a8a267b668
commit 9b8aa5e135

View File

@ -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);