From 72f6eb52adb99e35744f8b02ce57bcd5b760cfa2 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 26 Apr 2010 09:30:10 +0000 Subject: [PATCH] gdb/ * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size. Fix whitespace. --- gdb/ChangeLog | 5 +++++ gdb/cp-namespace.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 148219ea9b3..b3e61bcc78c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-04-26 Jan Kratochvil + + * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size. + Fix whitespace. + 2010-04-24 Pedro Alves * defs.h: Adjust comment. diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index 43f9c9a6091..c050d1a2efa 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)); } } -- 2.30.2