From 256ba9129c671263f3ab8a1d2e4533642ba40e71 Mon Sep 17 00:00:00 2001 From: jason Date: Fri, 30 Oct 2009 18:45:25 +0000 Subject: [PATCH] Revert: * decl.c (cp_fname_init): Correct build_string argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153765 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/decl.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 676b431..423a1cd 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2009-10-30 Jason Merrill + + Revert: + * decl.c (cp_fname_init): Correct build_string argument. + 2009-10-30 Jerry Quinn * mangle.c (mangle_type_string_for_rtti): Revert 153734. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 349d3b3..33023a7 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -3512,7 +3512,7 @@ cp_fname_init (const char* name, tree *type_p) { length = strlen (name); domain = build_index_type (size_int (length)); - init = build_string (length, name); + init = build_string (length + 1, name); } type = build_qualified_type (char_type_node, TYPE_QUAL_CONST); -- 2.7.4