From 06f4d47a294af530aa375bd08ac02ee98008ee06 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 10 Dec 1994 05:39:59 +0000 Subject: (remove_parents): Use strr?chr instead of r?index. --- src/rmdir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2