diff options
Diffstat (limited to 'usr.bin/w/w.c')
-rw-r--r-- | usr.bin/w/w.c | 3 |
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; |