aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-03-09 20:33:16 -0600
committerRob Landley <rob@landley.net>2012-03-09 20:33:16 -0600
commit28427d2fff6074f8be173b6dbb76cf05a41e0e3e (patch)
tree7e1b9b30efa856975104c627a5a5918da75c7f89
parent35cb740415073fc64d17a22f93955ddc436c72ae (diff)
downloadtoybox-28427d2fff6074f8be173b6dbb76cf05a41e0e3e.tar.gz
Replace deprecated libc function with its totally renamed equivalent.
-rw-r--r--toys/sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/sort.c b/toys/sort.c
index 89a97026..07a57163 100644
--- a/toys/sort.c
+++ b/toys/sort.c
@@ -359,7 +359,7 @@ void sort_main(void)
// Which flag is this?
optlist = toys.which->options;
- temp2 = index(optlist, *temp);
+ temp2 = strchr(optlist, *temp);
flag = (1<<(optlist-temp2+strlen(optlist)-1));
// Was it a flag that can apply to a key?