# HG changeset patch # User Rob Landley # Date 1331346796 21600 # Node ID 9ab5ee341d47e23936541e2e5b9d01abc6e08584 # Parent f70187762108b00388bf0163ff78c07fa7c85f39 Replace deprecated libc function with its totally renamed equivalent. diff -r f70187762108 -r 9ab5ee341d47 toys/sort.c --- a/toys/sort.c Fri Mar 09 20:23:08 2012 -0600 +++ b/toys/sort.c Fri Mar 09 20:33:16 2012 -0600 @@ -359,7 +359,7 @@ // 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?