diff options
-rw-r--r-- | pn_log.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |