From d6758aaccec504fe11648ab0d1eb09ebc8a887e0 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 15 Oct 2020 01:25:18 +1000 Subject: [PATCH] CDSubchannelReplacement: Fix a crash on invalid input --- src/common/cd_subchannel_replacement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/cd_subchannel_replacement.cpp b/src/common/cd_subchannel_replacement.cpp index be4c1270d..76b4ffafa 100644 --- a/src/common/cd_subchannel_replacement.cpp +++ b/src/common/cd_subchannel_replacement.cpp @@ -62,7 +62,7 @@ bool CDSubChannelReplacement::LoadSBI(const char* path) if (entry.type != 1) { - Log_ErrorPrintf("Invalid type 0x%02X in '%s'", path); + Log_ErrorPrintf("Invalid type 0x%02X in '%s'", entry.type, path); return false; }