mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-02 18:05:43 -04:00
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…
x
Reference in New Issue
Block a user