]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(print_entry): Use strchr, not index.
authorJim Meyering <jim@meyering.net>
Fri, 23 Feb 1996 16:12:01 +0000 (16:12 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 23 Feb 1996 16:12:01 +0000 (16:12 +0000)
src/who-users.c

index ce9553c7221277759191d8e1548393149aa6cfb9..47298dcc04df359afd15536d6bc52021a9cbe05c 100644 (file)
@@ -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';