diff options
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/string.c b/src/string.c index b6ca9e489..044083848 100644 --- a/src/string.c +++ b/src/string.c @@ -337,6 +337,7 @@ mrb_str_concat(mrb_state *mrb, mrb_value self, mrb_value other) struct RString *s1 = mrb_str_ptr(self), *s2; int len; + str_modify(mrb, self); if (mrb_type(other) != MRB_TT_STRING) { other = mrb_str_to_str(mrb, other); } |
