update COPYING.DOC to fdl version 1.2.
[gnulib.git] / regex.c
diff --git a/regex.c b/regex.c
index b4f2d8d..5cb9973 100644 (file)
--- a/regex.c
+++ b/regex.c
@@ -33,9 +33,6 @@
   #pragma alloca
 #endif
 
-#undef _GNU_SOURCE
-#define _GNU_SOURCE
-
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
@@ -6202,7 +6199,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;