]> mj.ucw.cz Git - nwho.git/commitdiff
Oops, forgot to commit recent changes...
authorMartin Mares <mj@ucw.cz>
Tue, 18 Nov 1997 10:35:02 +0000 (10:35 +0000)
committerMartin Mares <mj@ucw.cz>
Tue, 18 Nov 1997 10:35:02 +0000 (10:35 +0000)
ChangeLog
nwho.c

index b5eb1305bb53880da03b4074640fc7b03c5635d3..c4fd408b7ce2729d8bc07ac7fe3fae4ee65650a3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Oct 17 18:14:18 1997  Martin Mares  <mj@lomikel.karlin.mff.cuni.cz>
+
+       * nwho.c (show_users): Problems with long user names hopefully gone.
+
 Tue Sep 30 16:52:44 1997  Martin Mares  <mj@lomikel.karlin.mff.cuni.cz>
 
        * nwho.c (scan): <= instead of < was causing invalid messages
diff --git a/nwho.c b/nwho.c
index b41adc84916c71d8074b0660315cf4ca9896424b..94a07fe9a9054d63ec5fee1c9b2bd9db2c63c1ee 100644 (file)
--- a/nwho.c
+++ b/nwho.c
@@ -71,7 +71,7 @@ show_users(char *name, struct rywho_pkt *p)
   for(u=0; u<m; u++)
     {
       i = &p->users[u];
-      printf("%-8s %-3s %c %-16s ", i->name, i->con, (i->mesg_y ? ' ' : '-'), name);
+      printf("%-8.8s %-3s %c %-16s ", i->name, i->con, (i->mesg_y ? ' ' : '-'), name);
       puttime(ntohl(i->login_time));
       putchar(' ');
       puttime(ntohl(i->idle_time));