lastlog: fix alignment of Latest header
b1282224 (Add maximum padding to fit IPv6-Addresses, 2020-05-24) pads
the From field header using `maxIPv6Addrlen - 3`. This leaves the
Latest field header misaligned. Subtract 4 (the length of "From").
This commit is contained in:
committed by
Serge Hallyn
parent
6f4dc321c3
commit
2643f27b36
+1
-1
@@ -143,7 +143,7 @@ static void print_one (/*@null@*/const struct passwd *pw)
|
||||
/* Print the header only once */
|
||||
if (!once) {
|
||||
#ifdef HAVE_LL_HOST
|
||||
printf (_("Username Port From%*sLatest\n"), maxIPv6Addrlen-3, " ");
|
||||
printf (_("Username Port From%*sLatest\n"), maxIPv6Addrlen-4, " ");
|
||||
#else
|
||||
puts (_("Username Port Latest"));
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user