aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1998-03-05 00:51:00 +0000
committerJason Molenda <jmolenda@apple.com>1998-03-05 00:51:00 +0000
commit94ec3e76cb006c207486fcd5e6c8e93a5d92a0e3 (patch)
treeac1d92fbc0568010bf1359370d5f2f1545377f75
parentd7363521cf56276cde08ae8911cb405c33ccda97 (diff)
downloadgdb-94ec3e76cb006c207486fcd5e6c8e93a5d92a0e3.zip
gdb-94ec3e76cb006c207486fcd5e6c8e93a5d92a0e3.tar.gz
gdb-94ec3e76cb006c207486fcd5e6c8e93a5d92a0e3.tar.bz2
Wed Mar 4 16:50:18 1998 Jason Molenda (crash@bugshack.cygnus.com)
* gdbtk.c (gdb_listfiles): Fix thinko in last change.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/gdbtk.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2f355de..3209545 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 81338a1..f335a68 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)
{