gdb/
* cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size. Fix whitespace.
This commit is contained in:
parent
8092910b63
commit
72f6eb52ad
2 changed files with 7 additions and 2 deletions
|
@ -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>
|
2010-04-24 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* defs.h: Adjust comment.
|
* defs.h: Adjust comment.
|
||||||
|
|
|
@ -264,7 +264,7 @@ cp_lookup_symbol_in_namespace (const char *namespace,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char *concatenated_name = alloca (strlen (namespace) + 2 +
|
char *concatenated_name = alloca (strlen (namespace) + 2 +
|
||||||
strlen (name+ 1));
|
strlen (name) + 1);
|
||||||
strcpy (concatenated_name, namespace);
|
strcpy (concatenated_name, namespace);
|
||||||
strcat (concatenated_name, "::");
|
strcat (concatenated_name, "::");
|
||||||
strcat (concatenated_name, name);
|
strcat (concatenated_name, name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue