From 9b8aa5e1355af3e52f48ed9860675a0a392d83ce Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 26 Apr 2013 08:04:38 +0300 Subject: CINE: Null terminate string. CID 1003886 --- engines/cine/various.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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); -- cgit v1.2.3