diff options
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3049,7 +3049,7 @@ rb_str_replace(VALUE str, VALUE str2) } else { rb_str_modify(str); - str_replace_shared(str, str2); + str_replace_shared(str, rb_str_new4(str2)); } OBJ_INFECT(str, str2); |