If we forgot a newline, add it for us.
This commit is contained in:
parent
0db3693478
commit
42df364346
@ -131,6 +131,8 @@ int lprintf(enum ltype logtype, const char* fmt, ...)
|
||||
}
|
||||
}
|
||||
}
|
||||
if(fmt[strlen(fmt)] != '\n')
|
||||
fputc('\n', logf);
|
||||
fflush(logf);
|
||||
va_end(ap);
|
||||
free(ofmt); /* MUST do this */
|
||||
|
Loading…
Reference in New Issue
Block a user