diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-06 12:33:45 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-06 12:33:45 +0000 |
commit | edd7c787adc53f70a9d2790076e4c6d77a1f5324 (patch) | |
tree | 0b19582f07ef27790bde97603bd271efb88bcb35 /ext/strscan/strscan.c | |
parent | 629b1e4324ecfbdb9e953f2a0da74a833786e1e9 (diff) |
* array.c (rb_ary_cycle): typo in rdoc. a patch from Yugui
<[email protected]>. [ruby-dev:31748]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/strscan/strscan.c')
-rw-r--r-- | ext/strscan/strscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c index 44cd0f4131..ac07b39789 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; } |