diff options
author | Jim Meyering <jim@meyering.net> | 1994-12-04 21:15:46 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-12-04 21:15:46 +0000 |
commit | 12042b2fa27dc803319d3bcc8f7ebd954250cbd8 (patch) | |
tree | 545c99499087d8df5cc389c48c7293388dd53ea8 /src/pathchk.c | |
parent | 06084cb7e8b51f8bd9e89c84723b7ce4e8af7541 (diff) | |
download | coreutils-12042b2fa27dc803319d3bcc8f7ebd954250cbd8.tar.xz |
Use strr?chr instead of r?index.
Diffstat (limited to 'src/pathchk.c')
-rw-r--r-- | src/pathchk.c | 4 |
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) |