summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/string.c b/string.c
index 37321306ae..09c494463e 100644
--- a/string.c
+++ b/string.c
@@ -413,6 +413,7 @@ VALUE
rb_str_concat(str1, str2)
VALUE str1, str2;
{
+ rb_str_modify(str1);
if (FIXNUM_P(str2)) {
int i = FIX2INT(str2);
if (0 <= i && i <= 0xff) { /* byte */