* peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args.
authorAlan Modra <amodra@gmail.com>
Tue, 16 Jul 2002 13:35:58 +0000 (13:35 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 16 Jul 2002 13:35:58 +0000 (13:35 +0000)
bfd/ChangeLog
bfd/peXXigen.c

index 40b268300da096fb543724672460c093b905f348..cb66ee74e85a2c874f08f29036920d44ed666c5c 100644 (file)
@@ -1,3 +1,7 @@
+2002-07-16  Moritz Jodeit  <moritz@jodeit.org>
+
+       * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args.
+
 2002-07-16  Alan Modra  <amodra@bigpond.net.au>
 
        * elflink.h: Formatting fixes, tidy prototypes.
index 69864334fbb163d313ba2eb0d83b13e6c9230dbd..b643f3c23669e6b48e442b57877090d992fe3d57 100644 (file)
@@ -620,7 +620,7 @@ _bfd_XXi_swap_aouthdr_out (abfd, in, out)
   extra->NumberOfRvaAndSizes = IMAGE_NUMBEROF_DIRECTORY_ENTRIES;
 
   /* first null out all data directory entries ..  */
-  memset (extra->DataDirectory, sizeof (extra->DataDirectory), 0);
+  memset (extra->DataDirectory, 0, sizeof (extra->DataDirectory));
 
   add_data_entry (abfd, extra, 0, ".edata", ib);