diff options
author | Rob Landley <rob@landley.net> | 2012-03-09 20:33:16 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2012-03-09 20:33:16 -0600 |
commit | 28427d2fff6074f8be173b6dbb76cf05a41e0e3e (patch) | |
tree | 7e1b9b30efa856975104c627a5a5918da75c7f89 /toys | |
parent | 35cb740415073fc64d17a22f93955ddc436c72ae (diff) | |
download | toybox-28427d2fff6074f8be173b6dbb76cf05a41e0e3e.tar.gz |
Replace deprecated libc function with its totally renamed equivalent.
Diffstat (limited to 'toys')
-rw-r--r-- | toys/sort.c | 2 |
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? |