When calling netstat -Laptcp the local address values are not aligned

with the corresponding entry in the table header.
r295136 increased the value width from 14 to 32 without the corresponding
change to the table header. This commit adds the change to the table
header width.

MFC after:	3 days
This commit is contained in:
Michael Tuexen 2016-07-15 17:40:34 +00:00
parent 7aeccebc0d
commit db2627f4b1

View File

@ -418,10 +418,10 @@ protopr(u_long off, const char *name, int af1, int proto)
"Tcpcb");
if (Lflag)
xo_emit((Aflag && !Wflag) ?
"{T:/%-5.5s} {T:/%-14.14s} {T:/%-18.18s}" :
"{T:/%-5.5s} {T:/%-32.32s} {T:/%-18.18s}" :
((!Wflag || af1 == AF_INET) ?
"{T:/%-5.5s} {T:/%-14.14s} {T:/%-22.22s}" :
"{T:/%-5.5s} {T:/%-14.14s} {T:/%-45.45s}"),
"{T:/%-5.5s} {T:/%-32.32s} {T:/%-22.22s}" :
"{T:/%-5.5s} {T:/%-32.32s} {T:/%-45.45s}"),
"Proto", "Listen", "Local Address");
else if (Tflag)
xo_emit((Aflag && !Wflag) ?