From cd48737e118bcc1ed58e9710b9641e5a9e457179 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Sat, 2 Jun 2012 00:07:05 +0900 Subject: mrb_str_concat was broken for shared strings; close #214 --- src/string.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); } -- cgit v1.2.3