From: Jim Meyering Date: Sun, 17 Aug 2003 16:04:00 +0000 (+0000) Subject: Avoid unnecessary and sometimes time-consuming hostname lookups. X-Git-Tag: v5.0.91~177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f976fd6f3866575a115ff6e2afeb91466758e44c;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/src/who.c b/src/who.c index a3bb7d2efa..fa418521cd 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';