From: Jim Meyering Date: Fri, 23 Feb 1996 16:12:01 +0000 (+0000) Subject: (print_entry): Use strchr, not index. X-Git-Tag: FILEUTILS-3_12j~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cb56e2980b6ee30d982c18a84ea7723e7849318;p=thirdparty%2Fcoreutils.git (print_entry): Use strchr, not index. --- diff --git a/src/who-users.c b/src/who-users.c index ce9553c722..47298dcc04 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';