]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Update asn.c - 32bit asn widths 102/head
authorTheo Baschak <tbaschak@users.noreply.github.com>
Sat, 2 Jan 2016 05:59:28 +0000 (23:59 -0600)
committerTheo Baschak <tbaschak@users.noreply.github.com>
Sat, 2 Jan 2016 05:59:28 +0000 (23:59 -0600)
Now that 32-bit ASNs are becoming more common the output of -z should take their width into consideration.

asn.c

diff --git a/asn.c b/asn.c
index 33622cafc8710746a09480c71a6af9a857d94e70..628f50446a704135c52eb942e10145b2885ce655 100644 (file)
--- a/asn.c
+++ b/asn.c
@@ -60,7 +60,7 @@ char fmtinfo[32];
 extern int af;                  /* address family of remote target */
 
 // items width: ASN, Route, Country, Registry, Allocated 
-int iiwidth[] = { 6, 19, 4, 8, 11};    // item len + space
+int iiwidth[] = { 7, 19, 4, 8, 11};    // item len + space
 int iiwidth_len = sizeof(iiwidth)/sizeof((iiwidth)[0]);
 
 typedef char* items_t[ITEMSMAX + 1];