From 3438dff9b0e6f48f2a8c2e3406a52a903d03b2d0 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 5 Jun 1995 08:14:46 -0400 Subject: [PATCH] (decl_attributes): Fix typo in size passed to alloca. From-SVN: r9874 --- gcc/c-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; -- 2.30.2