Change .8s port name restriction to .15s, modern tcp port

have longer names, check /etc/services.
kerberos_master triggers this bug: it is undistiguishable from
simple kerberos for .8s
This commit is contained in:
ache 1995-12-23 18:19:01 +00:00
parent 7bbaffb06a
commit 6ef4e82f0f

View File

@ -445,7 +445,7 @@ inetprint(in, port, proto)
if (!nflag && port)
sp = getservbyport((int)port, proto);
if (sp || port == 0)
sprintf(cp, "%.8s", sp ? sp->s_name : "*");
sprintf(cp, "%.15s", sp ? sp->s_name : "*");
else
sprintf(cp, "%d", ntohs((u_short)port));
width = Aflag ? 18 : 22;