Review games
This commit is contained in:
parent
b1806f6600
commit
477f05db13
1 changed files with 224 additions and 89 deletions
|
|
@ -222,7 +222,7 @@ static char *StringReplace(char *orig, char *rep, char *with)
|
|||
|
||||
// Count the number of replacements needed
|
||||
ins = orig;
|
||||
for (count = 0; tmp = strstr(ins, rep); ++count)
|
||||
for (count = 0; (tmp = strstr(ins, rep)); ++count)
|
||||
{
|
||||
ins = tmp + len_rep;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue