summaryrefslogtreecommitdiffhomepage
path: root/games/transmission/screens/screen_ending.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/transmission/screens/screen_ending.c')
-rw-r--r--games/transmission/screens/screen_ending.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/transmission/screens/screen_ending.c b/games/transmission/screens/screen_ending.c
index 0492a0cc..22c2298b 100644
--- a/games/transmission/screens/screen_ending.c
+++ b/games/transmission/screens/screen_ending.c
@@ -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;
}