summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-07-16 13:35:58 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-07-16 13:35:58 +0000
commit4a8ccfd7c3fb1745341e4cf8f3579c9f65ce7983 (patch)
treeef281c1af618fc7fe6d800aef7dafa6ca94dc227 /bfd
parent2711b996e80f60ebdaa5890995013d3bcd9e07a3 (diff)
downloadgdb-4a8ccfd7c3fb1745341e4cf8f3579c9f65ce7983.tar.gz
* peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/peXXigen.c2
2 files changed, 5 insertions, 1 deletions
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 <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.
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);