aboutsummaryrefslogtreecommitdiffstats
path: root/support/regexec.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-08-29 18:53:55 +0300
committerArnold D. Robbins <arnold@skeeve.com>2021-08-29 18:53:55 +0300
commit0e1761697d8ed24b07cf23035f5dd01d09056e3a (patch)
tree0bfa58691f81e87f3098d736bc0409c4dd5fc40c /support/regexec.c
parent6696453c1a733436cbb9ca41c7c75eeb4e0b428a (diff)
downloadegawk-0e1761697d8ed24b07cf23035f5dd01d09056e3a.tar.gz
egawk-0e1761697d8ed24b07cf23035f5dd01d09056e3a.tar.bz2
egawk-0e1761697d8ed24b07cf23035f5dd01d09056e3a.zip
Sync support with GNULIB updates.
Diffstat (limited to 'support/regexec.c')
-rw-r--r--support/regexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/regexec.c b/support/regexec.c
index 5e4eb497..83e9aaf8 100644
--- a/support/regexec.c
+++ b/support/regexec.c
@@ -191,7 +191,7 @@ static reg_errcode_t extend_buffers (re_match_context_t *mctx, int min_len);
int
regexec (const regex_t *__restrict preg, const char *__restrict string,
- size_t nmatch, regmatch_t pmatch[], int eflags)
+ size_t nmatch, regmatch_t pmatch[_REGEX_NELTS (nmatch)], int eflags)
{
reg_errcode_t err;
Idx start, length;
@@ -235,7 +235,7 @@ int
attribute_compat_text_section
__compat_regexec (const regex_t *__restrict preg,
const char *__restrict string, size_t nmatch,
- regmatch_t pmatch[], int eflags)
+ regmatch_t pmatch[_REGEX_NELTS (nmatch)], int eflags)
{
return regexec (preg, string, nmatch, pmatch,
eflags & (REG_NOTBOL | REG_NOTEOL));