aboutsummaryrefslogtreecommitdiff
path: root/bfd/peXXigen.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-07-16 13:35:58 +0000
committerAlan Modra <amodra@gmail.com>2002-07-16 13:35:58 +0000
commit36b08f12d11c62fe4e22c09d13ab3162c179c823 (patch)
tree4f84a96455edbe28789da4c9b3ac64ccb56dc54f /bfd/peXXigen.c
parent58821868a5e4dcaeffb829cbb72b3e73eaa078c8 (diff)
downloadgdb-36b08f12d11c62fe4e22c09d13ab3162c179c823.zip
gdb-36b08f12d11c62fe4e22c09d13ab3162c179c823.tar.gz
gdb-36b08f12d11c62fe4e22c09d13ab3162c179c823.tar.bz2
* peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args.
Diffstat (limited to 'bfd/peXXigen.c')
-rw-r--r--bfd/peXXigen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c
index 6986433..b643f3c 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);