From: Richard Kenner Date: Mon, 5 Jun 1995 12:14:46 +0000 (-0400) Subject: (decl_attributes): Fix typo in size passed to alloca. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3438dff9b0e6f48f2a8c2e3406a52a903d03b2d0;p=gcc.git (decl_attributes): Fix typo in size passed to alloca. From-SVN: r9874 --- diff --git a/gcc/c-common.c b/gcc/c-common.c index dac7d804a7d..0491952eacc 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -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';