tcpdump: Use stack variables

This commit is contained in:
Sebastian Huber 2019-03-11 09:29:19 +01:00
parent 4a8e4d9326
commit d8a584df97

View File

@ -154,8 +154,8 @@ char *
q922_string(netdissect_options *ndo, const u_char *p, u_int length)
{
static u_int dlci, addr_len;
static uint8_t flags[4];
u_int dlci, addr_len;
uint8_t flags[4];
static char buffer[sizeof("DLCI xxxxxxxxxx")];
memset(buffer, 0, sizeof(buffer));