awrong memset() arg. OpenBSD PR 2822.

This commit is contained in:
itojun 2002-07-16 23:07:33 +00:00
parent ece8b74130
commit b3f9de2ade
1 changed files with 1 additions and 1 deletions

View File

@ -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);