(decl_attributes): Fix typo in size passed to alloca.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 5 Jun 1995 12:14:46 +0000 (08:14 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 5 Jun 1995 12:14:46 +0000 (08:14 -0400)
From-SVN: r9874

gcc/c-common.c

index dac7d80..0491952 100644 (file)
@@ -423,7 +423,7 @@ decl_attributes (node, attributes, prefix_attributes)
              if (len > 4 && p[0] == '_' && p[1] == '_'
                  && p[len - 1] == '_' && p[len - 2] == '_')
                {
-                 char *newp = (char *) alloca (len - 2);
+                 char *newp = (char *) alloca (len - 1);
 
                  strcpy (newp, &p[2]);
                  newp[len - 4] = '\0';