1 Use strstr() instead of index(), since index() is a legacy function
2 and it may not be available in uClibc, depending on the configuration.
4 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
6 Index: rubix-1.0.5/cube.c
7 ===================================================================
8 --- rubix-1.0.5.orig/cube.c 2010-02-14 14:19:05.000000000 +0100
9 +++ rubix-1.0.5/cube.c 2010-02-14 14:19:14.000000000 +0100
11 if (i==-1) goto finish;
12 if (buffer[0]=='%') goto new_section;
13 buffer[0]=toupper(buffer[0]);
14 - ptr = index(buffer, '=');
15 + ptr = strstr(buffer, '=');
18 while (isspace(*ptr)) ++ptr;