From: Jason Molenda Date: Thu, 5 Mar 1998 00:51:00 +0000 (+0000) Subject: Wed Mar 4 16:50:18 1998 Jason Molenda (crash@bugshack.cygnus.com) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=94ec3e76cb006c207486fcd5e6c8e93a5d92a0e3;p=binutils-gdb.git Wed Mar 4 16:50:18 1998 Jason Molenda (crash@bugshack.cygnus.com) * gdbtk.c (gdb_listfiles): Fix thinko in last change. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2f355dea62e..3209545c3a9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +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. diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c index 81338a11f91..f335a685027 100644 --- a/gdb/gdbtk.c +++ b/gdb/gdbtk.c @@ -1223,7 +1223,7 @@ gdb_listfiles (clientData, interp, objc, objv) Tcl_Obj *mylist; files_size = 1000; - files = (char **) xmalloc (sizeof (char **) * files_size); + files = (char **) xmalloc (sizeof (char *) * files_size); if (objc > 2) { @@ -1240,7 +1240,7 @@ gdb_listfiles (clientData, interp, objc, objv) 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) { @@ -1258,7 +1258,7 @@ gdb_listfiles (clientData, interp, objc, objv) 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) {