Replace sprintf() with StrFormat() (PR #1048)

This commit is contained in:
Kelvin Lee
2022-03-03 08:10:41 +11:00
committed by GitHub
parent 80f3eaeb91
commit dfb8802763
8 changed files with 99 additions and 111 deletions
+1 -3
View File
@@ -443,9 +443,7 @@ bool Saturn128K::LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version)
}
// "Memory Bankxx"
char szBank[3];
sprintf(szBank, "%02X", uBank);
std::string memName = GetSnapshotMemStructName() + szBank;
std::string memName = GetSnapshotMemStructName() + StrFormat("%02X", uBank);
if (!yamlLoadHelper.GetSubMap(memName))
throw std::runtime_error("Memory: Missing map name: " + memName);