diff options
author | Jim Meyering <jim@meyering.net> | 1994-12-10 05:39:59 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-12-10 05:39:59 +0000 |
commit | 06f4d47a294af530aa375bd08ac02ee98008ee06 (patch) | |
tree | c43b52aa94aa58e4faf3dbd13433aadf8cb413ad /src | |
parent | 7f58bbba8882cbe89ca61fed1e40821d84573048 (diff) | |
download | coreutils-06f4d47a294af530aa375bd08ac02ee98008ee06.tar.xz |
(remove_parents): Use strr?chr instead of r?index.
Diffstat (limited to 'src')
-rw-r--r-- | src/rmdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rmdir.c b/src/rmdir.c index 18f55d81f..59f0797c6 100644 --- a/src/rmdir.c +++ b/src/rmdir.c @@ -124,7 +124,7 @@ remove_parents (path) do { - slash = rindex (path, '/'); + slash = strrchr (path, '/'); if (slash == NULL) break; /* Remove any characters after the slash, skipping any extra |