Replace deprecated libc function with its totally renamed equivalent.
authorRob Landley <rob@landley.net>
Sat, 10 Mar 2012 02:33:16 +0000 (20:33 -0600)
committerRob Landley <rob@landley.net>
Sat, 10 Mar 2012 02:33:16 +0000 (20:33 -0600)
toys/sort.c

index 89a9702..07a5716 100644 (file)
@@ -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?