summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex.c b/src/regex.c
index b4f2d8d8049..022ca13eba6 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -6202,7 +6202,7 @@ regexec (preg, string, nmatch, pmatch, eflags)
const regex_t *__restrict preg;
const char *__restrict string;
size_t nmatch;
- regmatch_t pmatch[];
+ regmatch_t pmatch[__restrict_arr];
int eflags;
{
int ret;