summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/bfd
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/bfd')
-rw-r--r--gnu/usr.bin/binutils/bfd/peXXigen.c2
-rw-r--r--gnu/usr.bin/binutils/bfd/peigen.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/bfd/peXXigen.c b/gnu/usr.bin/binutils/bfd/peXXigen.c
index 0e1eaeac536..f62d9cb9cc2 100644
--- a/gnu/usr.bin/binutils/bfd/peXXigen.c
+++ b/gnu/usr.bin/binutils/bfd/peXXigen.c
@@ -639,7 +639,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);
diff --git a/gnu/usr.bin/binutils/bfd/peigen.c b/gnu/usr.bin/binutils/bfd/peigen.c
index 8e40bd3cd61..a6fd7f600cf 100644
--- a/gnu/usr.bin/binutils/bfd/peigen.c
+++ b/gnu/usr.bin/binutils/bfd/peigen.c
@@ -564,7 +564,7 @@ _bfd_pei_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);