From 24db4e6e90006f4eb4548b44c640bdf0748df4ae Mon Sep 17 00:00:00 2001 From: BearOso Date: Wed, 15 Mar 2023 15:02:08 -0500 Subject: [PATCH] Apply SafeString to ROMName here as well. --- memmap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/memmap.cpp b/memmap.cpp index f4441ef9..498ddcaf 100644 --- a/memmap.cpp +++ b/memmap.cpp @@ -2426,8 +2426,9 @@ void CMemory::InitROM (void) ROMId[4] = 0; strcpy(ROMId, SafeString(ROMId).c_str()); + sprintf(String, "\"%s\" [%s] %s, %s, %s, %s, SRAM:%s, ID:%s, CRC32:%08X", - ROMName, isChecksumOK ? "checksum ok" : ((Multi.cartType == 4) ? "no checksum" : "bad checksum"), + SafeString(ROMName).c_str(), isChecksumOK ? "checksum ok" : ((Multi.cartType == 4) ? "no checksum" : "bad checksum"), MapType(), Size(), KartContents(), Settings.PAL ? "PAL" : "NTSC", StaticRAMSize(), ROMId, ROMCRC32); S9xMessage(S9X_INFO, S9X_ROM_INFO, String);