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.
This commit is contained in:
Jim Meyering committed 2003-08-17 16:04:00 +00:00
1 parent 7cea884787
commit f976fd6f38
1 file changed
+1 -1
+1 -1
View File
@@ -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';