* hash.c (strtab_hash_newfunc): Fix typo in allocated size.
authorHans-Peter Nilsson <hp@axis.com>
Tue, 22 Mar 2005 21:52:52 +0000 (21:52 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Tue, 22 Mar 2005 21:52:52 +0000 (21:52 +0000)
bfd/ChangeLog
bfd/hash.c

index dba1adbbd6d59cc9edde0b8324a064ce4723bc75..f02c6775dadccba20557449ab2d637781b7844d9 100644 (file)
@@ -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,
index a81b38ccefa205c02190952768952e90bd4a6716..21c6293e141b8f60a37d5fa6e1623bd75224f6ea 100644 (file)
@@ -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;