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