mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08:50 -05:00
fixed vprint implementation (patch from VMiklos <vmiklos@frugalware.org>)
This commit is contained in:
parent
a167cdb47e
commit
bd25319775
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user