summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pn_log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pn_log.c b/pn_log.c
index 1463efc..d662c20 100644
--- a/pn_log.c
+++ b/pn_log.c
@@ -1,4 +1,5 @@
#include "pn_log.h"
+#include "pn_printf.h"
#include <stdarg.h>
#include <stdio.h>
@@ -32,7 +33,7 @@ void _pn_helper(unsigned level,
va_start(args, fmt);
- vasprintf(&tmp, fmt, args);
+ tmp = pn_strdup_vprintf(fmt, args);
if (level <= 1)
fprintf(stdout, "%c: %s: %s\n", l, function, tmp);