From cfe1691f752cfe1c58e2a57889451d42a6dce91d Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 14 Oct 2020 21:56:33 +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; }