2007-12-23 Robert Millan <rmh@aybabtu.com>
Patch from Bean <bean123ch@gmail.com>: * disk/loopback.c (grub_loopback_read): Add missing bit shift to `size'.
This commit is contained in:
parent
4bc72aa96f
commit
57e57e3167
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-12-23 Robert Millan <rmh@aybabtu.com>
|
||||
|
||||
Patch from Bean <bean123ch@gmail.com>:
|
||||
* disk/loopback.c (grub_loopback_read): Add missing bit shift to
|
||||
`size'.
|
||||
|
||||
2007-12-21 Bean <bean123ch@gmail.com>
|
||||
|
||||
* conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
|
||||
|
|
|
@ -214,7 +214,7 @@ grub_loopback_read (grub_disk_t disk, grub_disk_addr_t sector,
|
|||
if (pos > file->size)
|
||||
{
|
||||
grub_size_t amount = pos - file->size;
|
||||
grub_memset (buf + size - amount, 0, amount);
|
||||
grub_memset (buf + (size << GRUB_DISK_SECTOR_BITS) - amount, 0, amount);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue