From 42df3643468457fa464acc9afa1c7a5fa9089b41 Mon Sep 17 00:00:00 2001 From: dcp1990 Date: Sun, 5 Jun 2005 17:12:36 +0000 Subject: [PATCH] If we forgot a newline, add it for us. --- phoned/log.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phoned/log.c b/phoned/log.c index 1188876..e6e41e0 100644 --- a/phoned/log.c +++ b/phoned/log.c @@ -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 */