]> The Tcpdump Group git mirrors - tcpdump/blobdiff - addrtoname.c
That array only needs 16 elements.
[tcpdump] / addrtoname.c
index 11ac08e33d14cfaaa26d516fb6d07423223c6518..df7c2cee9461f8e1c081b87a3af34bd619af9985 100644 (file)
@@ -331,7 +331,7 @@ getname6(netdissect_options *ndo, const u_char *ap)
        return (p->name);
 }
 
-static const char hex[] = "0123456789abcdef";
+static const char hex[16] = "0123456789abcdef";
 
 
 /* Find the hash node that corresponds the ether address 'ep' */