diff options
| author | Michael Tuexen <tuexen@FreeBSD.org> | 2011-07-12 11:47:08 +0000 |
|---|---|---|
| committer | Michael Tuexen <tuexen@FreeBSD.org> | 2011-07-12 11:47:08 +0000 |
| commit | 62372898d684d02345c8a85d97c0fcad50d74221 (patch) | |
| tree | 037ca1058117b9f1097ecc217cf6ac41b52621b0 | |
| parent | 20ddb079068f76f5cfd3babc863bc802c5a16502 (diff) | |
Notes
| -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 fc15607eb8f8c..8a112708d77d4 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; |
