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