aboutsummaryrefslogtreecommitdiff
path: root/bin/ln
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2011-03-15 22:22:11 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2011-03-15 22:22:11 +0000
commit0cf90cd1d37e29407d1fc74e39da6a1625b7cede (patch)
tree51d3edc3f3e8fc771fae62fa6aadc747bf88f069 /bin/ln
parent1f5cdd5a99c34b8330c4f90085ceee0e08126267 (diff)
Notes
Diffstat (limited to 'bin/ln')
-rw-r--r--bin/ln/ln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ln/ln.c b/bin/ln/ln.c
index fc3afc133083..e5fdeee072db 100644
--- a/bin/ln/ln.c
+++ b/bin/ln/ln.c
@@ -80,7 +80,7 @@ main(int argc, char *argv[])
* "link", for which the functionality provided is greatly
* simplified.
*/
- if ((p = rindex(argv[0], '/')) == NULL)
+ if ((p = strrchr(argv[0], '/')) == NULL)
p = argv[0];
else
++p;