Mercurial > hg > toybox
changeset 538:9ab5ee341d47
Replace deprecated libc function with its totally renamed equivalent.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 09 Mar 2012 20:33:16 -0600 |
parents | f70187762108 |
children | 09135436042b |
files | toys/sort.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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?