You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-arcade/openbubbles/files/openbubbles-1.2-glibc2.10.p...

21 lines
686 B

--- a/src/BFont.cpp
+++ b/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)