off-by-one error
This commit is contained in:
parent
42df364346
commit
e9205fe7a9
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ int lprintf(enum ltype logtype, const char* fmt, ...)
|
|||
}
|
||||
}
|
||||
}
|
||||
if(fmt[strlen(fmt)] != '\n')
|
||||
if(fmt[strlen(fmt)-1] != '\n')
|
||||
fputc('\n', logf);
|
||||
fflush(logf);
|
||||
va_end(ap);
|
||||
|
|
Loading…
Reference in a new issue