1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-11-13 11:04:27 -05:00

Fix bug with missing newline

This commit is contained in:
Alex Kotov 2020-12-06 07:50:26 +05:00
parent 683e86271e
commit 6612990c98
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -41,12 +41,7 @@ void kernaux_console_printf(const char *format, ...)
while ((c = *format++) != 0)
{
if (c == '\n') {
if (*format != 0) {
kernaux_console_putc('\n');
}
}
else if (c != '%') {
if (c != '%') {
kernaux_console_putc(c);
}
else {