fixed vprint implementation (patch from VMiklos <vmiklos@frugalware.org>)

This commit is contained in:
Aurelien Foret 2006-02-01 22:14:17 +00:00
parent a167cdb47e
commit bd25319775
1 changed files with 4 additions and 8 deletions

View File

@ -103,17 +103,13 @@ void vprint(char *fmt, ...)
{
va_list args;
char str[LOG_STR_LEN];
if(config->verbose > 0) {
if(neednl == 1) {
fprintf(stdout, "\n");
neednl = 0;
}
va_start(args, fmt);
/* ORE
commented for now: it produces corruption
pm_fprintf(stdout, NL, fmt, args); */
vprintf(fmt, args);
vsnprintf(str, LOG_STR_LEN, fmt, args);
va_end(args);
pm_fprintf(stdout, NL, str);
}
}