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 /gdb/cp-namespace.c | |
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.
Diffstat (limited to 'gdb/cp-namespace.c')
-rw-r--r-- | gdb/cp-namespace.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } } |