From 43168646d81f2b5d5d5ef2502db98a4f14318d38 Mon Sep 17 00:00:00 2001 From: Leon Drugi Date: Sat, 27 Apr 2013 21:16:55 +0200 Subject: [PATCH] * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in BSS clearing. --- ChangeLog | 5 +++++ grub-core/loader/multiboot_mbi2.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 67099391e..0f3eaf682 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-04-27 Leon Drugi + + * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in + BSS clearing. + 2013-04-27 Vladimir Serbinenko Core compression test. diff --git a/grub-core/loader/multiboot_mbi2.c b/grub-core/loader/multiboot_mbi2.c index 900793a9b..ccd32a746 100644 --- a/grub-core/loader/multiboot_mbi2.c +++ b/grub-core/loader/multiboot_mbi2.c @@ -251,7 +251,7 @@ grub_multiboot_load (grub_file_t file, const char *filename) } if (addr_tag->bss_end_addr) - grub_memset ((grub_uint32_t *) source + load_size, 0, + grub_memset ((grub_uint8_t *) source + load_size, 0, addr_tag->bss_end_addr - addr_tag->load_addr - load_size); } else