2007-07-27 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Sat, 28 Jul 2007 01:16:39 +0000 (01:16 +0000)
committerMichael Snyder <msnyder@vmware.com>
Sat, 28 Jul 2007 01:16:39 +0000 (01:16 +0000)
* tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.

gdb/ChangeLog
gdb/tui/tui-data.c

index 9bf43680e09dc355225a55583617f31a774084fd..b27556469fe5147ec7eb617f458b16b0990c08fa 100644 (file)
@@ -1,3 +1,7 @@
+2007-07-27  Michael Snyder  <msnyder@access-company.com>
+
+       * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
+
 2007-07-26  Maciej W. Rozycki  <macro@linux-mips.org>
 
        * MAINTAINERS (Write After Approval): Add myself.
index aefa000120b386eb61e84e264587b54335462e22..40726c5d82c55d77a210df4efb811267ff0c9214 100644 (file)
@@ -450,7 +450,7 @@ tui_alloc_generic_win_info (void)
   struct tui_gen_win_info * win;
 
   if ((win = (struct tui_gen_win_info *) xmalloc (
-                    sizeof (struct tui_gen_win_info *))) != (struct tui_gen_win_info *) NULL)
+                    sizeof (struct tui_gen_win_info))) != (struct tui_gen_win_info *) NULL)
     tui_init_generic_part (win);
 
   return win;