summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-27 14:17:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-27 14:17:28 +0000
commit9166bd2bc9fa21a6cfa3c6390a7d165c0068895c (patch)
tree627c7985a1320119242ae19ea41ef1f632d7ad86 /string.c
parent4461bd2f1f804b82ab4c77902eecaa28bc99be39 (diff)
* string.c (rb_str_rstrip_bang): wrong strip point. [ruby-dev:31652]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string.c b/string.c
index 653f4c067e..1a369828fc 100644
--- a/string.c
+++ b/string.c
@@ -4260,9 +4260,9 @@ rb_str_rstrip_bang(VALUE str)
rb_str_modify(str);
enc = rb_enc_get(str);
- s = t = RSTRING_PTR(str);
+ s = RSTRING_PTR(str);
if (!s || RSTRING_LEN(str) == 0) return Qnil;
- e = RSTRING_END(str);
+ t = e = RSTRING_END(str);
while (s < e) {
int cc = rb_enc_codepoint(s, e, enc);