From d629684bb91e7ea64508cd24629a44d41ff328dd Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 24 May 2009 23:06:57 +0000 Subject: * string.c (rb_str_rpartition): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 1 + 1 file changed, 1 insertion(+) (limited to 'string.c') diff --git a/string.c b/string.c index 246599d050..c75bb1003c 100644 --- a/string.c +++ b/string.c @@ -6924,6 +6924,7 @@ rb_str_rpartition(VALUE str, VALUE sep) rb_raise(rb_eTypeError, "type mismatch: %s given", rb_obj_classname(sep)); } + sep = tmp; pos = rb_str_sublen(str, pos); pos = rb_str_rindex(str, sep, pos); } -- cgit v1.2.3