fixed vprint implementation (patch from VMiklos <vmiklos@frugalware.org>)
This commit is contained in:
parent
a167cdb47e
commit
bd25319775
1 changed files with 4 additions and 8 deletions
|
@ -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…
Add table
Reference in a new issue