From 6050532813c52e3bcfb5fe02de41b7d3c8d4bf70 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 18 Aug 2018 23:57:15 -0500 Subject: Allow enough space padding for "192.168.123.456/24" to consistently indent. --- toys/net/ifconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/net/ifconfig.c b/toys/net/ifconfig.c index 634b6dd0..dbe66d39 100644 --- a/toys/net/ifconfig.c +++ b/toys/net/ifconfig.c @@ -130,7 +130,7 @@ static void display_ifconfig(char *name, int always, unsigned long long val[]) uu = htonl(*(unsigned *)&(si->sin_addr)); for (i = 0; uu; i++) uu <<= 1; len += printf("/%d", i); - printf("%*c", 26-len, ' '); + printf("%*c", 29-len, ' '); } // query hardware type and hardware address -- cgit v1.2.3