Fix for reported cris-axis-elf breakage
Hans-Peter Nilsson
hans-peter.nilsson@axis.com
Wed Mar 23 02:05:00 GMT 2005
I wonder why this wasn't seen when <name withheld> was testing
the patch... Please commit, I don't have my keys here.
2005-03-22 Hans-Peter Nilsson <hp@axis.com>
* hash.c (strtab_hash_newfunc): Fix typo in allocated size.
Index: hash.c
===================================================================
RCS file: /cvs/src/src/bfd/hash.c,v
retrieving revision 1.15
diff -c -p -u -p -r1.15 hash.c
cvs diff: conflicting specifications of output style
--- hash.c 22 Mar 2005 16:14:41 -0000 1.15
+++ hash.c 22 Mar 2005 20:19:30 -0000
@@ -555,7 +555,7 @@ strtab_hash_newfunc (struct bfd_hash_ent
/* 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;
brgds, H-P
More information about the Binutils
mailing list