+Wed Mar 4 16:50:18 1998 Jason Molenda (crash@bugshack.cygnus.com)
+
+ * gdbtk.c (gdb_listfiles): Fix thinko in last change.
+
Wed Mar 4 15:34:49 1998 Jason Molenda (crash@bugshack.cygnus.com)
* gdbtk.c (gdb_listfiles): Allocate space for 'files' dynamically.
Tcl_Obj *mylist;
files_size = 1000;
- files = (char **) xmalloc (sizeof (char **) * files_size);
+ files = (char **) xmalloc (sizeof (char *) * files_size);
if (objc > 2)
{
if (numfiles == files_size)
{
files_size = files_size * 2;
- files = (char **) xrealloc (files, sizeof (char **) * files_size);
+ files = (char **) xrealloc (files, sizeof (char *) * files_size);
}
if (len == 0)
{
if (numfiles == files_size)
{
files_size = files_size * 2;
- files = (char **) xrealloc (files, sizeof (char **) * files_size);
+ files = (char **) xrealloc (files, sizeof (char *) * files_size);
}
if (len == 0)
{