diff options
author | Tristan Heaven <nyhm@gentoo.org> | 2009-06-13 17:15:44 +0000 |
---|---|---|
committer | Tristan Heaven <nyhm@gentoo.org> | 2009-06-13 17:15:44 +0000 |
commit | 9c2ae6877a7f86de42aea51a895b7dbc845190a7 (patch) | |
tree | bd6839c9747f8fd44dc27ef530b0d459e382af90 /games-arcade/openbubbles/files | |
parent | Fix building with glibc-2.10, bug #273402 (diff) | |
download | gentoo-2-9c2ae6877a7f86de42aea51a895b7dbc845190a7.tar.gz gentoo-2-9c2ae6877a7f86de42aea51a895b7dbc845190a7.tar.bz2 gentoo-2-9c2ae6877a7f86de42aea51a895b7dbc845190a7.zip |
Fix building with glibc-2.10, bug #273409
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'games-arcade/openbubbles/files')
-rw-r--r-- | games-arcade/openbubbles/files/openbubbles-1.2-glibc2.10.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games-arcade/openbubbles/files/openbubbles-1.2-glibc2.10.patch b/games-arcade/openbubbles/files/openbubbles-1.2-glibc2.10.patch new file mode 100644 index 000000000000..d511734da28f --- /dev/null +++ b/games-arcade/openbubbles/files/openbubbles-1.2-glibc2.10.patch @@ -0,0 +1,20 @@ +--- src/BFont.cpp ++++ src/BFont.cpp +@@ -319,7 +319,7 @@ + int i = 0;
+
+ /* Calculate the space occupied by the text without spaces */
+- while ((p=strchr(&text[pos+1],SPACE)) != NULL) {
++ while ((p=strchr((char *)&text[pos+1],SPACE)) != NULL) {
+ i++;
+ pos = p - text;
+ }
+@@ -359,7 +359,7 @@ + xpos=0;
+ pos = -1;
+ while ( spaces > 0 ) {
+- p = strstr(&text[pos+1]," ");
++ p = strstr((char *)&text[pos+1]," ");
+ strtmp = NULL;
+ strtmp = (char *) calloc ((p - &text[pos+1]) + 1,sizeof(char));
+ if (strtmp != NULL)
|