1Use strstr() instead of index(), since index() is a legacy function 2and it may not be available in uClibc, depending on the configuration. 3 4Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 5 6Index: 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 10@@ -257,7 +257,7 @@ 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, '='); 16 if (ptr) { 17 ++ptr; 18 while (isspace(*ptr)) ++ptr; 19