Commit 3438dff9 by Richard Kenner

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

From-SVN: r9874
parent b92c5711
......@@ -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';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment