elf32: fix size in call to memset.

Pointed out by Eric Decker <cire831@gmail.com>.
This commit is contained in:
Daniel Beer 2014-02-09 20:32:47 +13:00
parent 78f26b5a5e
commit 9a425d2877
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ static int feed_section(struct elf32_info *info,
static int read_all(struct elf32_info *info, FILE *in)
{
memset(info, 0, sizeof(info));
memset(info, 0, sizeof(*info));
if (read_ehdr(info, in) < 0)
return -1;