diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-20 09:16:03 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-20 09:16:03 +0000 |
| commit | 8bb1dbdc25a2527aa86999e5cf8efefa3b8ea740 (patch) | |
| tree | ece657e900912db325ab550969aece430a3a5136 | |
| parent | 3db4641b2aa2d3c8b2467786f0442cda84c88f5b (diff) | |
* string.c (rb_str_buf_append): should infect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | string.c | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Fri Jun 20 18:16:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * string.c (rb_str_buf_append): should infect. + Fri Jun 20 15:40:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * array.c (rb_ary_store, rb_ary_splice): not depend on unspecified @@ -793,7 +793,9 @@ VALUE rb_str_buf_append(str, str2) VALUE str, str2; { - return str_buf_cat(str, RSTRING(str2)->ptr, RSTRING(str2)->len); + str_buf_cat(str, RSTRING(str2)->ptr, RSTRING(str2)->len); + OBJ_INFECT(str, str2); + return str; } VALUE |
