mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 08:18:51 -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;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user