1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-18 09:46:33 +02:00

(remove_parents): Use strr?chr instead of r?index.

This commit is contained in:
Jim Meyering
1994-12-10 05:39:59 +00:00
parent 7f58bbba88
commit 06f4d47a29

View 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