mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
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:
1 parent
4bc72aa96f
commit
57e57e3167
2 files changed
+7
-1
No files matched your search
@@ -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.
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user