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:
parent
ee67bcf31e
commit
f188a86064
1 changed files with 1 additions and 1 deletions
|
@ -394,7 +394,7 @@ grub_ufs_read_file (struct grub_ufs_data *data,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
grub_memset (buf, UFS_BLKSZ (sblock) - skipfirst, 0);
|
grub_memset (buf, 0, blockend);
|
||||||
|
|
||||||
buf += UFS_BLKSZ (sblock) - skipfirst;
|
buf += UFS_BLKSZ (sblock) - skipfirst;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue