qmuxd_wrapper: Make hexdump buffer thread-local, to be on the safe side

This commit is contained in:
Harald Welte 2016-12-25 21:47:39 +01:00
parent f8a57056b2
commit f44b9565bb
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
CFLAGS=-fPIC -Wall
LDFLAGS=-shared -ldl
LDFLAGS=-shared -ldl -lpthread
all: qmuxd_wrapper.so

View File

@ -11,7 +11,7 @@
#include "qmuxd_protocol.h"
static char hexd_buff[4096];
static __thread char hexd_buff[4096];
static const char hex_chars[] = "0123456789abcdef";
static char *_osmo_hexdump(const unsigned char *buf, int len, char *delim)