off-by-one error

This commit is contained in:
dcp1990 2005-06-05 17:15:36 +00:00
parent 42df364346
commit e9205fe7a9

View File

@ -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);