From b7529b608ea3e56784c7682b382f285008a2fc90 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 8 Mar 2012 20:14:55 -0600 Subject: More stabs at getting #includes right, and moving off of deprecated functions. --- toys/which.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/which.c') diff --git a/toys/which.c b/toys/which.c index 13198363..0ffc725a 100644 --- a/toys/which.c +++ b/toys/which.c @@ -30,7 +30,7 @@ static int which_in_path(char *filename) // If they gave us a path, don't worry about $PATH or -a - if (index(filename, '/')) { + if (strchr(filename, '/')) { // Confirm it has the executable bit set, and it's not a directory. if (!access(filename, X_OK)) { struct stat st; -- cgit v1.2.3