OSDN Git Service

(decl_attributes): Fix typo in size passed to alloca.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 1995 12:14:46 +0000 (12:14 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 1995 12:14:46 +0000 (12:14 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9874 138bc75d-0d04-0410-961f-82ee72b054a4

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';