summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-02-08 19:29:14 -0600
committerRob Landley <rob@landley.net>2012-02-08 19:29:14 -0600
commit7f28e68546837b5c636060507e2ab4bb581cd82b (patch)
tree820d9aefc17113b90d08da1561d5459e4489fc39 /main.c
parentf7c1de35882f1f6eddada222efd798f0b66b6dcf (diff)
downloadtoybox-7f28e68546837b5c636060507e2ab4bb581cd82b.tar.gz
toybox-7f28e68546837b5c636060507e2ab4bb581cd82b.tar.bz2
toybox-7f28e68546837b5c636060507e2ab4bb581cd82b.zip
Switch from deprecated function to gratuitously renamed identical non-depricated function. *shrug*
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 3feaca0..0820e87 100644
--- a/main.c
+++ b/main.c
@@ -148,7 +148,7 @@ int main(int argc, char *argv[])
char *name;
// Trim path off of command name
- name = rindex(argv[0], '/');
+ name = strrchr(argv[0], '/');
if (!name) name=argv[0];
else name++;
argv[0] = name;