]> granicus.if.org Git - onig/commitdiff
regression of using enclen_end()
authorK.Kosako <kkosako0@gmail.com>
Wed, 24 Aug 2016 14:11:47 +0000 (23:11 +0900)
committerK.Kosako <kkosako0@gmail.com>
Wed, 24 Aug 2016 14:11:47 +0000 (23:11 +0900)
src/regparse.c

index 2bd51f870f81da553ea292dd814639c9f16277a8..0ec87dfd40e24df9a3fec92c821b6dc6aeee0de2 100644 (file)
@@ -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;