libc/scanf: Skip whitespace before %%
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-06-18 23:51:44 +02:00
parent 25e9187826
commit 8c2348c425
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -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);