aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-08-18 23:57:15 -0500
committerRob Landley <rob@landley.net>2018-08-18 23:57:15 -0500
commit6050532813c52e3bcfb5fe02de41b7d3c8d4bf70 (patch)
treea484400d2285d03558bcd6842ddac1911f4515ee /toys
parent17a2d5783ac38d1b79f37e2524d390ac7386dbf4 (diff)
downloadtoybox-6050532813c52e3bcfb5fe02de41b7d3c8d4bf70.tar.gz
Allow enough space padding for "192.168.123.456/24" to consistently indent.
Diffstat (limited to 'toys')
-rw-r--r--toys/net/ifconfig.c2
1 files changed, 1 insertions, 1 deletions
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