gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 26 Apr 2010 09:30:10 +0000 (09:30 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 26 Apr 2010 09:30:10 +0000 (09:30 +0000)
* cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
Fix whitespace.

gdb/ChangeLog
gdb/cp-namespace.c

index 148219ea9b3075f567e9f63f6afaa4cb87a1581c..b3e61bcc78c6ad658544bbbe555023cab0cb6c71 100644 (file)
@@ -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.
index 43f9c9a6091870451e1967209328257ce82c577d..c050d1a2efa2e73c9a705b1d732464246e7a4d66 100644 (file)
@@ -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));
     }
 }