(decl_attributes): Fix typo in size passed to alloca.

From-SVN: r9874
This commit is contained in:
Richard Kenner 1995-06-05 08:14:46 -04:00
parent b92c5711ca
commit 3438dff9b0
1 changed files with 1 additions and 1 deletions

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