summaryrefslogtreecommitdiff
path: root/src/pacman
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman')
-rw-r--r--src/pacman/log.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/pacman/log.c b/src/pacman/log.c
index 550065ab..dd70492f 100644
--- a/src/pacman/log.c
+++ b/src/pacman/log.c
@@ -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);
}
}