From: K.Kosako Date: Wed, 24 Aug 2016 14:11:47 +0000 (+0900) Subject: regression of using enclen_end() X-Git-Tag: v6.1.0~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc32b10eff8cd40dd0a33b22b37084d742b3a188;p=onig regression of using enclen_end() --- diff --git a/src/regparse.c b/src/regparse.c index 2bd51f8..0ec87df 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -4177,7 +4177,7 @@ parse_char_class(Node** np, OnigToken* tok, UChar** src, UChar* end, goto err; } - len = enclen_end(env->enc, buf, buf + i); + len = enclen(env->enc, buf); if (i < len) { r = ONIGERR_TOO_SHORT_MULTI_BYTE_STRING; goto err;