mirror of
https://github.com/scummvm/scummvm.git
synced 2026-11-18 21:34:48 +00:00
CINE: Prevent buffer overruns in scummVMSaveLoadDialog.
This commit is contained in:
1 parent
de0b5b62ab
commit
c9bda09bc0
1 file changed
+1
-2
@@ -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