From f1efa44485199a4b545d28c121d7d2dc3ecfed4a Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sun, 18 Nov 2018 08:01:01 +0200 Subject: wrapper: use static log buffer --- src/wrapper/wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wrapper') diff --git a/src/wrapper/wrapper.c b/src/wrapper/wrapper.c index 9b2ed96..2767114 100644 --- a/src/wrapper/wrapper.c +++ b/src/wrapper/wrapper.c @@ -23,7 +23,7 @@ verbose_log(const char *fmt, ...) pthread_mutex_lock(&mutex); va_list ap; va_start(ap, fmt); - char buf[1024]; + static char buf[1024]; vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); fprintf(stderr, "%lu: %s\n", pthread_self(), buf); -- cgit v1.2.3-70-g09d2