diff --git a/phoned/log.c b/phoned/log.c index e6e41e0..0346fd3 100644 --- a/phoned/log.c +++ b/phoned/log.c @@ -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);