aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-10-03 14:09:59 -0500
committerRob Landley <rob@landley.net>2016-10-03 14:09:59 -0500
commit5c5dc394f6e3de00c26d971fb8d3bc5cc33226cf (patch)
tree55c0f1491dec2667e9d64fef7542a0f0033c65d7
parent6c3188cf0e551cd07e28398262cffb8b5b82a114 (diff)
downloadtoybox-5c5dc394f6e3de00c26d971fb8d3bc5cc33226cf.tar.gz
David Hedges pointed out that interface names can be longer than 10 chars.
-rw-r--r--toys/pending/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/route.c b/toys/pending/route.c
index 0126dc9c..dd7dfc3b 100644
--- a/toys/pending/route.c
+++ b/toys/pending/route.c
@@ -403,7 +403,7 @@ static void display_routes6(void)
xprintf("Kernel IPv6 routing table\n"
"%-43s%-40s Flags Metric Ref Use Iface\n", "Destination", "Next Hop");
- while ((items = fscanf(fp, "%32s%x%*s%*x%32s%x%x%x%x%10s\n", ipv6_dest_addr+8,
+ while ((items = fscanf(fp, "%32s%x%*s%*x%32s%x%x%x%x%15s\n", ipv6_dest_addr+8,
&prefixlen, ipv6_src_addr+8, &metric, &use, &refcount, &flag,
iface)) == 8)
{