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