diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2012-11-05 08:23:06 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2012-11-05 08:23:06 +0100 |
commit | 9b809e1a6ad2a82bfe0d2383f69f45ae8c6283bb (patch) | |
tree | 637617fcd0b2e5097f62e588b4d1d51c84be2740 /package/rubix/rubix-1.0.5-dont-use-legacy-functions.patch | |
parent | 7c992ac3410e6694d8697b770eb3b0463b80a0a4 (diff) | |
download | buildroot-novena-9b809e1a6ad2a82bfe0d2383f69f45ae8c6283bb.tar.gz buildroot-novena-9b809e1a6ad2a82bfe0d2383f69f45ae8c6283bb.zip |
package: drop games/ subdir
As discussed during the dev day.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/rubix/rubix-1.0.5-dont-use-legacy-functions.patch')
-rw-r--r-- | package/rubix/rubix-1.0.5-dont-use-legacy-functions.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/package/rubix/rubix-1.0.5-dont-use-legacy-functions.patch b/package/rubix/rubix-1.0.5-dont-use-legacy-functions.patch new file mode 100644 index 000000000..9c34aee6d --- /dev/null +++ b/package/rubix/rubix-1.0.5-dont-use-legacy-functions.patch @@ -0,0 +1,18 @@ +Use strstr() instead of index(), since index() is a legacy function +and it may not be available in uClibc, depending on the configuration. + +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> + +Index: rubix-1.0.5/cube.c +=================================================================== +--- rubix-1.0.5.orig/cube.c 2010-02-14 14:19:05.000000000 +0100 ++++ rubix-1.0.5/cube.c 2010-02-14 14:19:14.000000000 +0100 +@@ -257,7 +257,7 @@ + if (i==-1) goto finish; + if (buffer[0]=='%') goto new_section; + buffer[0]=toupper(buffer[0]); +- ptr = index(buffer, '='); ++ ptr = strstr(buffer, '='); + if (ptr) { + ++ptr; + while (isspace(*ptr)) ++ptr; |