If we forgot a newline, add it for us.

This commit is contained in:
dcp1990 2005-06-05 17:12:36 +00:00
parent 0db3693478
commit 42df364346

View File

@ -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 */