]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-atalk.c
Fix potential (but not actual) buffer overflow risk.
[tcpdump] / print-atalk.c
index 0a08ef9daa7835035f0663783f6c27dec34a209d..a075b189e5f14f03e506e7135047fc1eb7d9e080 100644 (file)
@@ -540,7 +540,7 @@ ataddr_string(u_short atnet, u_char athost)
 {
        register struct hnamemem *tp, *tp2;
        register int i = (atnet << 8) | athost;
-       char nambuf[MAXHOSTNAMELEN + 20];
+       char nambuf[256+1];
        static int first = 1;
        FILE *fp;