From 12042b2fa27dc803319d3bcc8f7ebd954250cbd8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 4 Dec 1994 21:15:46 +0000 Subject: Use strr?chr instead of r?index. --- src/pathchk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pathchk.c') 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) -- cgit v1.2.3-54-g00ecf