From 7ae21b1db0303625ccb7f460619e2f68a248d2ab Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 6 Sep 2007 12:33:45 +0000 Subject: * array.c (rb_ary_cycle): typo in rdoc. a patch from Yugui . [ruby-dev:31748] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/strscan/strscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c index 44cd0f413..ac07b3978 100644 --- a/ext/strscan/strscan.c +++ b/ext/strscan/strscan.c @@ -661,7 +661,7 @@ strscan_getch(VALUE self) if (EOS_P(p)) return Qnil; - len = rb_enc_mbclen(CURPTR(p), enc); + len = rb_enc_mbclen(CURPTR(p), S_PEND(p), enc); if (p->curr + len > S_LEN(p)) { len = S_LEN(p) - p->curr; } -- cgit