summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/who.c2
1 files changed, 1 insertions, 1 deletions
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';