blob: df2bcebc58b831ada7f4e8f4f4a8f6e90b6ca8e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- 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)
|