From 9cb56e2980b6ee30d982c18a84ea7723e7849318 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 23 Feb 1996 16:12:01 +0000 Subject: (print_entry): Use strchr, not index. --- src/who-users.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/who-users.c b/src/who-users.c index ce9553c72..47298dcc0 100644 --- a/src/who-users.c +++ b/src/who-users.c @@ -255,7 +255,7 @@ print_entry (struct utmp *this) ut_host[sizeof (this->ut_host)] = '\0'; /* Look for an X display. */ - display = index (ut_host, ':'); + display = strrchr (ut_host, ':'); if (display) *display++ = '\0'; -- cgit v1.2.3-70-g09d2