aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-03-08 20:14:55 -0600
committerRob Landley <rob@landley.net>2012-03-08 20:14:55 -0600
commitb7529b608ea3e56784c7682b382f285008a2fc90 (patch)
tree95f47b19499f5df2bc78f303a63588da4ce43ce4 /lib
parent13cacbd09de09e38e4d1227f7122fda8f1d6fc63 (diff)
downloadtoybox-b7529b608ea3e56784c7682b382f285008a2fc90.tar.gz
More stabs at getting #includes right, and moving off of deprecated functions.
Diffstat (limited to 'lib')
-rw-r--r--lib/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.c b/lib/lib.c
index cc441f9d..a1f4a528 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -390,7 +390,7 @@ struct string_list *find_in_path(char *path, char *filename)
char *cwd = xgetcwd();
for (;;) {
- char *next = path ? index(path, ':') : NULL;
+ char *next = path ? strchr(path, ':') : NULL;
int len = next ? next-path : strlen(path);
struct string_list *rnext;
struct stat st;