diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2005-03-22 21:52:52 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2005-03-22 21:52:52 +0000 |
commit | 81c64aeddceef03734c305619609387320975b2d (patch) | |
tree | e87d4b1004e4228827959bedb0f3e4e31028759e | |
parent | 5487e4e99816e35e285d8659be771807c95d473f (diff) | |
download | gdb-81c64aeddceef03734c305619609387320975b2d.tar.gz |
* hash.c (strtab_hash_newfunc): Fix typo in allocated size.
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/hash.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index dba1adbbd6d..f02c6775dad 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2005-03-22 Hans-Peter Nilsson <hp@axis.com> + + * hash.c (strtab_hash_newfunc): Fix typo in allocated size. + 2005-03-22 Bob Wilson <bob.wilson@acm.org> * xtensa-isa.c (xtensa_opcode_lookup, xtensa_state_lookup, diff --git a/bfd/hash.c b/bfd/hash.c index a81b38ccefa..21c6293e141 100644 --- a/bfd/hash.c +++ b/bfd/hash.c @@ -555,7 +555,7 @@ strtab_hash_newfunc (struct bfd_hash_entry *entry, /* Allocate the structure if it has not already been allocated by a subclass. */ if (ret == NULL) - ret = bfd_hash_allocate (table, sizeof (* entry)); + ret = bfd_hash_allocate (table, sizeof (* ret)); if (ret == NULL) return NULL; |