CINE: Prevent buffer overruns in scummVMSaveLoadDialog.

This commit is contained in:
Johannes Schickel
2015-12-28 00:36:24 +01:00
parent de0b5b62ab
commit c9bda09bc0
+1 -2
View File
@@ -365,8 +365,7 @@ int CineEngine::scummVMSaveLoadDialog(bool isSave) {
if (slot < 0)
return true;
char saveFileName[256];
sprintf(saveFileName, "%s.%1d", _targetName.c_str(), slot);
Common::String saveFileName(Common::String::format("%s.%1d", _targetName.c_str(), slot));
if (isSave) {
Common::String tmp = Common::String::format("%s.dir", _targetName.c_str());