]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(remove_parents): Use strr?chr instead of r?index.
authorJim Meyering <jim@meyering.net>
Sat, 10 Dec 1994 05:39:59 +0000 (05:39 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 10 Dec 1994 05:39:59 +0000 (05:39 +0000)
src/rmdir.c

index 18f55d81f42fbc6331407306d7640bd5f6bbc9f8..59f0797c655a3d743a124951cc4ea441a12baea3 100644 (file)
@@ -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