summaryrefslogtreecommitdiff
path: root/src/who.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-12-04 21:15:46 +0000
committerJim Meyering <jim@meyering.net>1994-12-04 21:15:46 +0000
commit12042b2fa27dc803319d3bcc8f7ebd954250cbd8 (patch)
tree545c99499087d8df5cc389c48c7293388dd53ea8 /src/who.c
parent06084cb7e8b51f8bd9e89c84723b7ce4e8af7541 (diff)
downloadcoreutils-12042b2fa27dc803319d3bcc8f7ebd954250cbd8.tar.xz
Use strr?chr instead of r?index.
Diffstat (limited to 'src/who.c')
-rw-r--r--src/who.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/who.c b/src/who.c
index e9e962898..7cbe51807 100644
--- a/src/who.c
+++ b/src/who.c
@@ -150,7 +150,7 @@ extract_trimmed_name (const STRUCT_UTMP *ut)
/* Append a trailing space character. Some systems pad names shorter than
the maximum with spaces, others pad with NULs. Remove any spaces. */
trimmed_name[sizeof (ut->ut_name)] = ' ';
- p = index (trimmed_name, ' ');
+ p = strchr (trimmed_name, ' ');
if (p != NULL)
*p = '\0';
return trimmed_name;