]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/genmatch.c
c-ada-spec.c (dump_ada_function_declaration): Increase buffer size to guarantee it...
[thirdparty/gcc.git] / gcc / genmatch.c
index 02e945af71d8bb0fdfa4c0589654228d6b0a7ac8..6195a3b7ed00732f64552c879ce19bfa1308bc7b 100644 (file)
@@ -4051,7 +4051,8 @@ parser::parse_expr ()
   else if (force_capture)
     {
       unsigned num = capture_ids->elements ();
-      char id[8];
+      /* Big enough for a 32-bit UINT_MAX plus prefix.  */
+      char id[13];
       bool existed;
       sprintf (id, "__%u", num);
       capture_ids->get_or_insert (xstrdup (id), &existed);