mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-01-06 08:53:36 +01:00
printf: fix %% doubling down as a format specifier
When parsing a %% format, the second % character was mistakenly not skipped over after emitting a '%' output; this resulted in it being treated as a format specifier. For instance, printf("%%d", 12); would print "%12".
This commit is contained in:
parent
610362f8c9
commit
41294ec0a4
1 changed files with 1 additions and 0 deletions
|
@ -227,6 +227,7 @@ void kprint(char const *format, va_list *args)
|
||||||
if(c == '%')
|
if(c == '%')
|
||||||
{
|
{
|
||||||
kprint_out('%');
|
kprint_out('%');
|
||||||
|
format++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue