diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-04-26 09:30:10 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-04-26 09:30:10 +0000 |
commit | 72f6eb52adb99e35744f8b02ce57bcd5b760cfa2 (patch) | |
tree | 7e03088a8da63778b2c8baf86a4e9924e49d6940 | |
parent | 8092910b630d687585da26147b555e27384000d4 (diff) | |
download | gdb-72f6eb52adb99e35744f8b02ce57bcd5b760cfa2.zip gdb-72f6eb52adb99e35744f8b02ce57bcd5b760cfa2.tar.gz gdb-72f6eb52adb99e35744f8b02ce57bcd5b760cfa2.tar.bz2 |
gdb/
* cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
Fix whitespace.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/cp-namespace.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 148219e..b3e61bc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index 43f9c9a..c050d1a 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -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)); } } |