mirror of
git://git.sv.gnu.org/coreutils
synced 2026-06-04 23:04:48 -04:00
(remove_parents): Use strr?chr instead of r?index.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user