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:
robertmh 2007-12-23 21:28:03 +00:00
parent 4bc72aa96f
commit 57e57e3167
2 changed files with 7 additions and 1 deletions

View file

@ -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.

View file

@ -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;