mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-24 02:23:27 +08:00
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:
parent
9a18f084be
commit
b09a65ece6
@ -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' */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user