summaryrefslogtreecommitdiff
path: root/gcc/godump.c
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-31 05:34:45 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-31 05:34:45 +0000
commit84e176ba161d620291121fc50d1db3c07b18ddfe (patch)
treeea1e5bfd55f7f93517c486d977134e6a712d62ed /gcc/godump.c
parent27b4e8579551bca90da2ab5b135a91ecc51024b4 (diff)
downloadgcc-84e176ba161d620291121fc50d1db3c07b18ddfe.tar.gz
* godump.c (go_format_type): Correct length of name added to
obstack for anonymous field. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174465 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/godump.c')
-rw-r--r--gcc/godump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/godump.c b/gcc/godump.c
index e0d50b5d1b0..3f78eead279 100644
--- a/gcc/godump.c
+++ b/gcc/godump.c
@@ -700,7 +700,7 @@ go_format_type (struct godump_container *container, tree type,
{
char buf[100];
- obstack_grow (ob, "Godump_", 2);
+ obstack_grow (ob, "Godump_", 7);
snprintf (buf, sizeof buf, "%d", i);
obstack_grow (ob, buf, strlen (buf));
i++;