summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/w/w.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index 6ab256a..77540a6 100644
--- a/usr.bin/w/w.c
+++ b/usr.bin/w/w.c
@@ -366,7 +366,8 @@ main(argc, argv)
p = hp->h_name;
p += strlen(hp->h_name);
p -= strlen(domain);
- if (p > hp->h_name && strcmp(p, domain) == 0)
+ if (p > hp->h_name &&
+ strcasecmp(p, domain) == 0)
*p = '\0';
}
p = hp->h_name;
OpenPOWER on IntegriCloud