libc/scanf: Skip whitespace before %%
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
25e9187826
commit
8c2348c425
@ -72,7 +72,11 @@ extern "C"
|
||||
else
|
||||
{
|
||||
format++;
|
||||
if (*format == '%') goto normal;
|
||||
if (*format == '%')
|
||||
{
|
||||
str += strspn(str, " \t\f\r\n\v");
|
||||
goto normal;
|
||||
}
|
||||
|
||||
int flags = parse_flags(&format);
|
||||
size_t width = parse_width(&format, flags);
|
||||
|
Loading…
Reference in New Issue
Block a user