(print_line): Don't truncate user names at 8 bytes.
authorJim Meyering <jim@meyering.net>
Sun, 20 Jun 2004 06:49:42 +0000 (06:49 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 20 Jun 2004 06:49:42 +0000 (06:49 +0000)
Problem reported by Guido Leenders in:
http://lists.gnu.org/archive/html/bug-coreutils/2004-06/msg00056.html

src/who.c

index 0de01829fac2f9e8fb6dbffbe17a80e61d96c515..554ae165692d60021b0b31fed1eeada52148e296 100644 (file)
--- a/src/who.c
+++ b/src/who.c
@@ -272,7 +272,7 @@ print_line (const char *user, const char state, const char *line,
     *x_exitstr = '\0';
 
   err = asprintf (&buf,
-                 "%-8.8s"
+                 "%-8s"
                  "%s"
                  " %-12s"
                  " %-12s"