From e9205fe7a991994e5e2908ad0216801474936119 Mon Sep 17 00:00:00 2001 From: dcp1990 Date: Sun, 5 Jun 2005 17:15:36 +0000 Subject: [PATCH] off-by-one error --- phoned/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);