diff options
-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? |