aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-06-05 08:14:46 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-06-05 08:14:46 -0400
commit3438dff9b0e6f48f2a8c2e3406a52a903d03b2d0 (patch)
tree9ac27640975496c781bf885ef0e5bd17097b81c1 /gcc/c-common.c
parentb92c5711ca8b7c10a104f5c90c474caa41719398 (diff)
downloadgcc-3438dff9b0e6f48f2a8c2e3406a52a903d03b2d0.zip
gcc-3438dff9b0e6f48f2a8c2e3406a52a903d03b2d0.tar.gz
gcc-3438dff9b0e6f48f2a8c2e3406a52a903d03b2d0.tar.bz2
(decl_attributes): Fix typo in size passed to alloca.
From-SVN: r9874
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index dac7d80..0491952 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';