diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-11-18 08:01:01 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-11-18 08:01:01 +0200 |
commit | f1efa44485199a4b545d28c121d7d2dc3ecfed4a (patch) | |
tree | 8542ebb7a51c614b957a984850effe115aedf3ef /src/wrapper | |
parent | c54ec039eb0ea6e6e74025fca2ee2de6ab5b79e5 (diff) |
wrapper: use static log buffer
Diffstat (limited to 'src/wrapper')
-rw-r--r-- | src/wrapper/wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |