From 9e308cbebe53426e12e99960522068806282aa04 Mon Sep 17 00:00:00 2001 From: ZarothYe Date: Sat, 26 Feb 2022 20:22:41 -0600 Subject: [PATCH] Fix another log string formatting issue found by Adam. --- Sources/Plasma/PubUtilLib/plAudioCore/plSrtFileReader.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Sources/Plasma/PubUtilLib/plAudioCore/plSrtFileReader.cpp b/Sources/Plasma/PubUtilLib/plAudioCore/plSrtFileReader.cpp index 3208086c..2cc63f32 100644 --- a/Sources/Plasma/PubUtilLib/plAudioCore/plSrtFileReader.cpp +++ b/Sources/Plasma/PubUtilLib/plAudioCore/plSrtFileReader.cpp @@ -109,10 +109,9 @@ bool plSrtFileReader::ReadFile() if (std::regex_match(line, matches, speakerTextRegex)) { if (matches.size() < 5) { // add error message and ensure this subtitle line won't be added to the entries - plStatusLog::AddLineS("audio.log", plStatusLog::kRed, " Subtitle text and/or speaker name '{}' are formatted incorrectly.", line); + plStatusLog::AddLineS("audio.log", plStatusLog::kRed, " Subtitle text and/or speaker name '%s' are formatted incorrectly.", line); subtitleNumber = 0; - } - else { + } else { // matches[0] is the entire match, we don't do anything with it // matches[2] is the second group (the optional subtitle speaker with colon but no space at the end) speakerName = matches[2];