From: Alan Modra Date: Tue, 16 Jul 2002 13:35:58 +0000 (+0000) Subject: * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36b08f12d11c62fe4e22c09d13ab3162c179c823;p=binutils-gdb.git * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 40b268300da..cb66ee74e85 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2002-07-16 Moritz Jodeit + + * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args. + 2002-07-16 Alan Modra * elflink.h: Formatting fixes, tidy prototypes. diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index 69864334fbb..b643f3c2366 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -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);