From: Jim Meyering Date: Sat, 10 Dec 1994 05:39:59 +0000 (+0000) Subject: (remove_parents): Use strr?chr instead of r?index. X-Git-Tag: textutils-1_12_1~408 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=06f4d47a294af530aa375bd08ac02ee98008ee06;p=thirdparty%2Fcoreutils.git (remove_parents): Use strr?chr instead of r?index. --- diff --git a/src/rmdir.c b/src/rmdir.c index 18f55d81f4..59f0797c65 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