From 28427d2fff6074f8be173b6dbb76cf05a41e0e3e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 9 Mar 2012 20:33:16 -0600 Subject: Replace deprecated libc function with its totally renamed equivalent. --- toys/sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') 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? -- cgit v1.2.3