CueParser: Fix crash on invalid mode string

This commit is contained in:
Connor McLaughlin 2021-06-09 19:33:11 +10:00
parent 52673743e1
commit da9c4c1175
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ bool File::HandleTrackCommand(const char* line, u32 line_number, Common::Error*
mode = TrackMode::Mode2Raw;
else
{
SetError(line_number, error, "Invalid mode: '*%s'", static_cast<int>(mode_str.length()), mode_str.data());
SetError(line_number, error, "Invalid mode: '%*s'", static_cast<int>(mode_str.length()), mode_str.data());
return false;
}