From: Jan Kratochvil Date: Mon, 26 Apr 2010 09:30:10 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72f6eb52adb99e35744f8b02ce57bcd5b760cfa2;p=binutils-gdb.git gdb/ * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size. Fix whitespace. --- 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)); } }