* peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args.

This commit is contained in:
Alan Modra 2002-07-16 13:35:58 +00:00
parent 58821868a5
commit 36b08f12d1
2 changed files with 5 additions and 1 deletions

View 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.

View 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);