mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
CINE: Prevent buffer overruns in scummVMSaveLoadDialog.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user