diff options
Diffstat (limited to 'bpf_image.c')
-rw-r--r-- | bpf_image.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bpf_image.c b/bpf_image.c index e48c76d5..febd07bb 100644 --- a/bpf_image.c +++ b/bpf_image.c @@ -44,6 +44,8 @@ #include "pcap-int.h" +#include "thread-local.h" + #ifdef HAVE_OS_PROTO_H #include "os-proto.h" #endif @@ -130,7 +132,7 @@ char * bpf_image(const struct bpf_insn *p, int n) { const char *op; - static char image[256]; + static thread_local char image[256]; char operand_buf[64]; const char *operand; |