grub2/0365-grub-core-loader-multiboot_mbi2.c-grub_multiboot_loa.patch
2013-06-07 14:03:56 -04:00

41 lines
1.2 KiB
Diff

From 87dd8f877802d0e60f03369e563e833a14bc9f0f Mon Sep 17 00:00:00 2001
From: Leon Drugi <eyak>
Date: Sat, 27 Apr 2013 21:16:55 +0200
Subject: [PATCH 365/471] * 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 6709939..0f3eaf6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-27 Leon Drugi <eyak>
+
+ * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
+ BSS clearing.
+
2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
Core compression test.
diff --git a/grub-core/loader/multiboot_mbi2.c b/grub-core/loader/multiboot_mbi2.c
index 900793a..ccd32a7 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
--
1.8.2.1