aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index df20a1cd35..5ebc5f3e87 100644
--- a/util.c
+++ b/util.c
@@ -291,7 +291,7 @@ ruby_add_suffix(VALUE str, const char *suffix)
while ((*t = *s) && *s != '.') {
baselen++;
if (*s == '\\' || *s == '/') baselen = 0;
- s++; t++;
+ s++; t++;
}
p = t;
@@ -309,7 +309,7 @@ ruby_add_suffix(VALUE str, const char *suffix)
ext[++extlen] = '\0';
}
else if (baselen < 8) {
- *p++ = *suffix;
+ *p++ = *suffix;
}
else if (ext[3] != *suffix) {
ext[3] = *suffix;