off-by-one error
This commit is contained in:
parent
42df364346
commit
e9205fe7a9
@ -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 New Issue
Block a user