projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b92c571
)
(decl_attributes): Fix typo in size passed to alloca.
author
Richard Kenner
<kenner@gcc.gnu.org>
Mon, 5 Jun 1995 12:14:46 +0000
(08:14 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Mon, 5 Jun 1995 12:14:46 +0000
(08:14 -0400)
From-SVN: r9874
gcc/c-common.c
patch
|
blob
|
history
diff --git
a/gcc/c-common.c
b/gcc/c-common.c
index dac7d804a7dce4d56c626f0ab41e535a038944f0..0491952eacc029af785f60f63d0bbd70624b2bd7 100644
(file)
--- 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';