diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-08 08:31:25 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-08 08:31:25 +0000 |
commit | 8b95a0df1b305238fb085544fcb0dd9445458f3d (patch) | |
tree | d0ee499c056f056137e344d72ebad6bdd9a18002 /string.c | |
parent | a6fa5855a864a69466556182d429a5c2ab2651bb (diff) | |
download | ruby-8b95a0df1b305238fb085544fcb0dd9445458f3d.tar.gz |
* string.c (rb_str_chop_bang): reset coderange. [ruby-core:23155]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5935,7 +5935,7 @@ rb_str_chop_bang(VALUE str) { if (RSTRING_LEN(str) > 0) { long len; - str_modify_keep_cr(str); + rb_str_modify(str); len = chopped_length(str); STR_SET_LEN(str, len); RSTRING_PTR(str)[len] = '\0'; |