1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-18 07:15:00 -05:00

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

View File

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