diff options
author | Jim Meyering <jim@meyering.net> | 2003-08-17 16:04:00 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-08-17 16:04:00 +0000 |
commit | f976fd6f3866575a115ff6e2afeb91466758e44c (patch) | |
tree | f67fd7bbecff01f8259ab860af6f6e5581c0f93a | |
parent | 7cea88478707a4ed438fbd17ac3ca2371d3328ee (diff) | |
download | coreutils-f976fd6f3866575a115ff6e2afeb91466758e44c.tar.xz |
Avoid unnecessary and sometimes time-consuming hostname lookups.
(print_user): Likewise.
This fixes a typo I introduced in who-users.c on 1996-02-23.
-rw-r--r-- | src/who.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -372,7 +372,7 @@ print_user (const STRUCT_UTMP *utmp_ent) ut_host[sizeof (utmp_ent->ut_host)] = '\0'; /* Look for an X display. */ - display = strrchr (ut_host, ':'); + display = strchr (ut_host, ':'); if (display) *display++ = '\0'; |