Commit 5a880d5d by Ian Lance Taylor Committed by Ian Lance Taylor

godump.c (go_format_type): Correct length of name added to obstack for anonymous field.

	* godump.c (go_format_type): Correct length of name added to
	obstack for anonymous field.

From-SVN: r174465
parent dd7b175e
2011-05-30 Ian Lance Taylor <iant@google.com>
* godump.c (go_format_type): Correct length of name added to
obstack for anonymous field.
2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/49186
......
......@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment