mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 03:18:14 +00:00
Fix TextReplace warning for const (#3687)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user