This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix for reported cris-axis-elf breakage


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]