1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

Use strr?chr instead of r?index.

This commit is contained in:
Jim Meyering
1994-12-04 21:15:46 +00:00
parent 06084cb7e8
commit 12042b2fa2
6 changed files with 9 additions and 9 deletions

View File

@@ -75,7 +75,7 @@ main (argc, argv)
path = argv[1];
strip_trailing_slashes (path);
slash = rindex (path, '/');
slash = strrchr (path, '/');
if (slash == NULL)
path = (char *) ".";
else