summaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorMike Frysinger2006-04-16 05:54:31 +0000
committerMike Frysinger2006-04-16 05:54:31 +0000
commit0436b9f482ec690c35488e8d5fc92a7100e0b21e (patch)
tree25d75b497ecaf89f7d996a5e1f0bca7bad0dfdcb /loginutils
parent78bd504947637b39c5f80134c553602b7dccf281 (diff)
downloadbusybox-0436b9f482ec690c35488e8d5fc92a7100e0b21e.zip
busybox-0436b9f482ec690c35488e8d5fc92a7100e0b21e.tar.gz
use strchr() not index()
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/deluser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/deluser.c b/loginutils/deluser.c
index b647537..1b9bc44 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;