* cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
	Fix whitespace.
This commit is contained in:
Jan Kratochvil 2010-04-26 09:30:10 +00:00
parent 8092910b63
commit 72f6eb52ad
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
* cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
Fix whitespace.
2010-04-24 Pedro Alves <pedro@codesourcery.com>
* defs.h: Adjust comment.

View File

@ -264,12 +264,12 @@ cp_lookup_symbol_in_namespace (const char *namespace,
else
{
char *concatenated_name = alloca (strlen (namespace) + 2 +
strlen (name+ 1));
strlen (name) + 1);
strcpy (concatenated_name, namespace);
strcat (concatenated_name, "::");
strcat (concatenated_name, name);
return lookup_symbol_file (concatenated_name, block,
domain,cp_is_anonymous (namespace));
domain, cp_is_anonymous (namespace));
}
}