CueParser: Fix crash on invalid mode string
This commit is contained in:
parent
52673743e1
commit
da9c4c1175
|
@ -274,7 +274,7 @@ bool File::HandleTrackCommand(const char* line, u32 line_number, Common::Error*
|
||||||
mode = TrackMode::Mode2Raw;
|
mode = TrackMode::Mode2Raw;
|
||||||
else
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue