Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/bfd awrong memset() arg. OpenBSD PR 2822.



details:   https://anonhg.NetBSD.org/src/rev/aae6798bf95d
branches:  trunk
changeset: 534106:aae6798bf95d
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Jul 16 23:07:33 2002 +0000

description:
awrong memset() arg.  OpenBSD PR 2822.

diffstat:

 gnu/dist/toolchain/bfd/peXXigen.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r b51d1354016b -r aae6798bf95d gnu/dist/toolchain/bfd/peXXigen.c
--- a/gnu/dist/toolchain/bfd/peXXigen.c Tue Jul 16 23:04:20 2002 +0000
+++ b/gnu/dist/toolchain/bfd/peXXigen.c Tue Jul 16 23:07:33 2002 +0000
@@ -639,7 +639,7 @@
   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);
 



Home | Main Index | Thread Index | Old Index