summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/generic.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generic.cc b/lib/generic.cc
index 24a7456..689a83c 100644
--- a/lib/generic.cc
+++ b/lib/generic.cc
@@ -89,7 +89,7 @@ static bool wrapper_printer(printer_t * prt, int level, const char * msg, ...) {
bool r;
va_list ap;
- va_start(ap, prt);
+ va_start(ap, msg);
r = prt->printm(level, msg, ap);
va_end(ap);