b8c914
From e1a2878a55b1a7f11f19b384c4ea5235c29866b2 Mon Sep 17 00:00:00 2001
b8c914
From: Karl Williamson <khw@cpan.org>
b8c914
Date: Mon, 11 Jun 2018 13:28:53 -0600
b8c914
Subject: [PATCH] regexec.c: Call macro with correct args.
b8c914
MIME-Version: 1.0
b8c914
Content-Type: text/plain; charset=UTF-8
b8c914
Content-Transfer-Encoding: 8bit
b8c914
b8c914
The second argument to this macro is a pointer to the end, as opposed to
b8c914
a length.
b8c914
b8c914
Signed-off-by: Petr Písař <ppisar@redhat.com>
b8c914
---
b8c914
 regexec.c | 2 +-
b8c914
 1 file changed, 1 insertion(+), 1 deletion(-)
b8c914
b8c914
diff --git a/regexec.c b/regexec.c
b8c914
index 7ed8f4fabc..ba52ae97c7 100644
b8c914
--- a/regexec.c
b8c914
+++ b/regexec.c
b8c914
@@ -1808,7 +1808,7 @@ STMT_START {
b8c914
     case trie_flu8:                                                                 \
b8c914
         _CHECK_AND_WARN_PROBLEMATIC_LOCALE;                                         \
b8c914
         if (UTF8_IS_ABOVE_LATIN1(*uc)) {                                            \
b8c914
-            _CHECK_AND_OUTPUT_WIDE_LOCALE_UTF8_MSG(uc, uc_end - uc);                \
b8c914
+            _CHECK_AND_OUTPUT_WIDE_LOCALE_UTF8_MSG(uc, uc_end);                     \
b8c914
         }                                                                           \
b8c914
         goto do_trie_utf8_fold;                                                     \
b8c914
     case trie_utf8_exactfa_fold:                                                    \
b8c914
-- 
b8c914
2.14.4
b8c914