diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/debug.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c index 055dfbb12e..5760a709ef 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -118,16 +118,12 @@ _PUBLIC_ void dbghdrclass(int level, int dclass, const char *location, const cha _PUBLIC_ void dbgtext(const char *format, ...) { va_list ap; - char *s = NULL; if (!check_reopen_logs()) return; va_start(ap, format); - vasprintf(&s, format, ap); + vdprintf(state.fd, format, ap); va_end(ap); - - write(state.fd, s, strlen(s)); - free(s); } _PUBLIC_ const char *logfile = NULL; |