summaryrefslogtreecommitdiffstats
path: root/utf8.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-06 12:33:45 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-06 12:33:45 +0000
commit7ae21b1db0303625ccb7f460619e2f68a248d2ab (patch)
tree0b19582f07ef27790bde97603bd271efb88bcb35 /utf8.c
parent600b64dd3af65d9b87f3d7fe634106564f0abb04 (diff)
downloadruby-7ae21b1db0303625ccb7f460619e2f68a248d2ab.tar.gz
ruby-7ae21b1db0303625ccb7f460619e2f68a248d2ab.tar.xz
ruby-7ae21b1db0303625ccb7f460619e2f68a248d2ab.zip
* array.c (rb_ary_cycle): typo in rdoc. a patch from Yugui
<yugui@yugui.sakura.ne.jp>. [ruby-dev:31748] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utf8.c b/utf8.c
index 89167cf17..6b6f41e62 100644
--- a/utf8.c
+++ b/utf8.c
@@ -60,7 +60,7 @@ static const int EncLen_UTF8[] = {
};
static int
-utf8_mbc_enc_len(const UChar* p)
+utf8_mbc_enc_len(const UChar* p, const UChar* e)
{
return EncLen_UTF8[*p];
}
@@ -96,7 +96,7 @@ utf8_mbc_to_code(const UChar* p, const UChar* end)
int c, len;
OnigCodePoint n;
- len = enc_len(ONIG_ENCODING_UTF8, p);
+ len = enc_len(ONIG_ENCODING_UTF8, p, end);
c = *p++;
if (len > 1) {
len--;