From f976fd6f3866575a115ff6e2afeb91466758e44c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 17 Aug 2003 16:04:00 +0000 Subject: 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. --- src/who.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/who.c') diff --git a/src/who.c b/src/who.c index a3bb7d2ef..fa418521c 100644 --- a/src/who.c +++ b/src/who.c @@ -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'; -- cgit v1.2.3-54-g00ecf