* decl.c (cp_fname_init): Correct build_string argument.

From-SVN: r153681
This commit is contained in:
Jason Merrill 2009-10-28 14:39:25 -04:00 committed by Jason Merrill
parent c4bb78e9cd
commit 34ad94d88c
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-10-28 Jason Merrill <jason@redhat.com>
* decl.c (cp_fname_init): Correct build_string argument.
2009-10-27 Jason Merrill <jason@redhat.com>
Allow no-capture lambdas to convert to function pointer.

View File

@ -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 + 1, name);
init = build_string (length, name);
}
type = build_qualified_type (char_type_node, TYPE_QUAL_CONST);