Fix TextReplace warning for const (#3687)
This commit is contained in:
parent
3fc43c1096
commit
5b5a2d035d
1 changed files with 9 additions and 9 deletions
|
@ -1534,7 +1534,7 @@ char *TextReplace(const char *text, const char *replace, const char *by)
|
|||
byLen = TextLength(by);
|
||||
|
||||
// Count the number of replacements needed
|
||||
insertPoint = text;
|
||||
insertPoint = (char*)text;
|
||||
for (count = 0; (temp = strstr(insertPoint, replace)); count++) insertPoint = temp + replaceLen;
|
||||
|
||||
// Allocate returning string and point temp to it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue