From 5c5dc394f6e3de00c26d971fb8d3bc5cc33226cf Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 3 Oct 2016 14:09:59 -0500 Subject: David Hedges pointed out that interface names can be longer than 10 chars. --- toys/pending/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') 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) { -- cgit v1.2.3