setup: fix blocklist size calculation

Found by: Coverity scan.
This commit is contained in:
Andrei Borzenkov 2015-01-30 22:57:39 +03:00
parent 151c19a42a
commit 016875dd52

View file

@ -529,7 +529,7 @@ SETUP (const char *dir,
bl.block = bl.first_block;
while (bl.block->len)
{
grub_memset (bl.block, 0, sizeof (bl.block));
grub_memset (bl.block, 0, sizeof (*bl.block));
bl.block--;