summaryrefslogtreecommitdiff
path: root/src/pathchk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pathchk.c')
-rw-r--r--src/pathchk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pathchk.c b/src/pathchk.c
index a34df0929..774620f3a 100644
--- a/src/pathchk.c
+++ b/src/pathchk.c
@@ -289,13 +289,13 @@ validate_path (path, portability)
while (*slash == '/')
slash++;
start = slash;
- slash = index (slash, '/');
+ slash = strchr (slash, '/');
if (slash != NULL)
*slash = '\0';
else
{
last_elem = 1;
- slash = index (start, '\0');
+ slash = strchr (start, '\0');
}
if (!last_elem)