diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-14 00:10:49 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-14 00:10:49 +0000 |
| commit | de6242a62ce29c9473bdfae715b259e719389005 (patch) | |
| tree | bd8d55b839882ed64955602d55ad219c10353113 /string.c | |
| parent | bfc81d60672e60f392c7259b612143a8ada3b55c (diff) | |
| download | ruby-de6242a62ce29c9473bdfae715b259e719389005.tar.gz ruby-de6242a62ce29c9473bdfae715b259e719389005.tar.xz ruby-de6242a62ce29c9473bdfae715b259e719389005.zip | |
* string.c (rb_str_subpat_set): must make str independent after
rb_reg_search() matched.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1252,6 +1252,7 @@ rb_str_subpat_set(str, re, nth, val) } end = RMATCH(match)->END(nth); len = end - start; + rb_str_modify(str); rb_str_update(str, start, len, val); } |
