From 12042b2fa27dc803319d3bcc8f7ebd954250cbd8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 4 Dec 1994 21:15:46 +0000 Subject: Use strr?chr instead of r?index. --- src/who.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/who.c') 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; -- cgit v1.2.3-54-g00ecf