ufs: Fix parameters to grub_memset.

len = 0 made simply no sense. Fix parameters to be in line with read.
This commit is contained in:
Alexander Bluhm 2015-10-09 13:35:40 +02:00 committed by Vladimir Serbinenko
parent ee67bcf31e
commit f188a86064

View file

@ -394,7 +394,7 @@ grub_ufs_read_file (struct grub_ufs_data *data,
return -1;
}
else
grub_memset (buf, UFS_BLKSZ (sblock) - skipfirst, 0);
grub_memset (buf, 0, blockend);
buf += UFS_BLKSZ (sblock) - skipfirst;
}