aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
Diffstat (limited to 'com32')
-rw-r--r--com32/lib/chrreplace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/chrreplace.c b/com32/lib/chrreplace.c
index 65786f94..cfbf5d4c 100644
--- a/com32/lib/chrreplace.c
+++ b/com32/lib/chrreplace.c
@@ -4,8 +4,8 @@
void chrreplace(char *source, char old, char new)
{
while (*source) {
- source++;
if (source[0] == old) source[0]=new;
+ source++;
}
}