aboutsummaryrefslogtreecommitdiff
path: root/loginutils/deluser.c
diff options
context:
space:
mode:
Diffstat (limited to 'loginutils/deluser.c')
-rw-r--r--loginutils/deluser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/deluser.c b/loginutils/deluser.c
index b647537d9..1b9bc4439 100644
--- a/loginutils/deluser.c
+++ b/loginutils/deluser.c
@@ -43,7 +43,7 @@ static inline Bounds boundary(const char *buffer, const char *login)
}
start++;
- stop = index(start, '\n'); /* index is a BSD-ism */
+ stop = strchr(start, '\n');
b.start = start - buffer;
b.stop = stop - buffer;
return b;