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:
parent
683e86271e
commit
6612990c98
1 changed files with 1 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue