diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-07-16 13:40:30 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-07-16 13:40:30 +0000 |
commit | b0da5903b03e65d1540ede2554cc4feff69140b6 (patch) | |
tree | b298ef3c4cff653056a48336f588e9f1fdde43e8 /gnu/usr.bin/binutils/bfd/peigen.c | |
parent | 9d3c4822e67537b8b9bf2891c9cbd17e0c115960 (diff) |
Correct memset arguments; from Moritz Jodeit <moritz@jodeit.org> via
PR/2822. Submited to binutils as well.
Diffstat (limited to 'gnu/usr.bin/binutils/bfd/peigen.c')
-rw-r--r-- | gnu/usr.bin/binutils/bfd/peigen.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |