summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNicolas Noble <pixel@Shinji.local>2008-12-03 06:58:04 -0800
committerNicolas Noble <pixel@Shinji.local>2008-12-03 06:58:04 -0800
commita6d6e86e81f6556696cba4e1971c684feb2608cd (patch)
tree8ae8a071be29b446aee4d2381fc7ce87bab4eb81 /lib
parent647315275bc825d43130a1b62ebd914ae8769d18 (diff)
Fixing va_list warning.
Diffstat (limited to 'lib')
-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);