diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-24 17:28:56 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-24 17:28:56 +0000 |
| commit | 422071996c3cae9a25eef9a66e6b20892436e21b (patch) | |
| tree | 254497843ddd0fbf60ee700008bf99071bc50990 /string.c | |
| parent | ec3c6d647c3eed056dff01d7493dd74ea7a56299 (diff) | |
| download | ruby-422071996c3cae9a25eef9a66e6b20892436e21b.tar.gz ruby-422071996c3cae9a25eef9a66e6b20892436e21b.tar.xz ruby-422071996c3cae9a25eef9a66e6b20892436e21b.zip | |
* string.c (rb_str_chomp_bang): coderange may change.
[ruby-core:22414]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6056,7 +6056,7 @@ rb_str_chomp_bang(int argc, VALUE *argv, VALUE str) memcmp(RSTRING_PTR(rs), pp, rslen) == 0)) { if (rb_enc_left_char_head(p, pp, e, enc) != pp) return Qnil; - str_modify_keep_cr(str); + rb_str_modify(str); STR_SET_LEN(str, RSTRING_LEN(str) - rslen); RSTRING_PTR(str)[RSTRING_LEN(str)] = '\0'; return str; |
