diff options
author | tuexen <tuexen@FreeBSD.org> | 2011-07-12 11:47:08 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2011-07-12 11:47:08 +0000 |
commit | ab8d20947c9e5b5e7ec0aa95ccf8f2a23f0cbaec (patch) | |
tree | 037ca1058117b9f1097ecc217cf6ac41b52621b0 /usr.bin | |
parent | 2131d5b8a4fd027320d07974942b603d4c6f607e (diff) | |
download | FreeBSD-src-ab8d20947c9e5b5e7ec0aa95ccf8f2a23f0cbaec.zip FreeBSD-src-ab8d20947c9e5b5e7ec0aa95ccf8f2a23f0cbaec.tar.gz |
Truncate link addresses like it is done for any
other address type.
MFC after: 4 weeks
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index fc15607..8a11270 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -394,7 +394,7 @@ intpr(int interval1, u_long ifnetaddr, void (*pfunc)(char *)) n = cp - sa->sa_data + 1; cp = sa->sa_data; hexprint: - while (--n >= 0) + while ((--n >= 0) && (m < 30)) m += printf("%02x%c", *cp++ & 0xff, n > 0 ? ':' : ' '); m = 32 - m; |