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:
@@ -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