From c9bda09bc0900aac6d1cd96cd3f69b6a1761df70 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 28 Dec 2015 00:36:24 +0100 Subject: CINE: Prevent buffer overruns in scummVMSaveLoadDialog. --- engines/cine/various.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/cine/various.cpp b/engines/cine/various.cpp index fa05369f8d..cd877a3295 100644 --- a/engines/cine/various.cpp +++ b/engines/cine/various.cpp @@ -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()); -- cgit v1.2.3