aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/w
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
committerBill Fumerola <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
commit9ef5c48befdfa36ad5ef5e0ae898e7ca9397abcc (patch)
treeb5a6ada1388aeb7553694b736fde6dc7d114dbff /usr.bin/w
parentadbaeacdd6ef7704c5427e2ed81c4364d91c6e07 (diff)
Notes
Diffstat (limited to 'usr.bin/w')
-rw-r--r--usr.bin/w/w.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index 9e1fe70435445..1e5ecebbbd781 100644
--- a/usr.bin/w/w.c
+++ b/usr.bin/w/w.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)w.c 8.4 (Berkeley) 4/16/94";
#endif
static const char rcsid[] =
- "$Id: w.c,v 1.33 1999/03/31 21:01:39 brian Exp $";
+ "$Id: w.c,v 1.34 1999/04/22 23:40:56 ache Exp $";
#endif /* not lint */
/*
@@ -325,7 +325,7 @@ main(argc, argv)
}
}
- if (!nflag)
+ if (!nflag) {
if (gethostname(domain, sizeof(domain) - 1) < 0 ||
(p = strchr(domain, '.')) == 0)
domain[0] = '\0';
@@ -333,6 +333,7 @@ main(argc, argv)
domain[sizeof(domain) - 1] = '\0';
memmove(domain, p, strlen(p) + 1);
}
+ }
for (ep = ehead; ep != NULL; ep = ep->next) {
char host_buf[UT_HOSTSIZE + 1];