This is an array of 16 character values, not a C character string.

Don't initialize it with a string, so no compiler whinges about there
being no room for a null terminator.
This commit is contained in:
Guy Harris 2017-09-14 11:59:38 -07:00
parent 9a18f084be
commit b09a65ece6

View File

@ -352,8 +352,10 @@ getname6(netdissect_options *ndo, const u_char *ap)
return (p->name);
}
static const char hex[16] = "0123456789abcdef";
static const char hex[16] = {
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
};
/* Find the hash node that corresponds the ether address 'ep' */