mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
fix a stupid bug
This commit is contained in:
1 parent
70ba31d512
commit
50fa325cd0
2 files changed
+6
-1
No files matched your search
+1
-1
@@ -87,7 +87,7 @@ load_image (void)
|
||||
}
|
||||
|
||||
/* ELF loading supported if multiboot and FreeBSD. */
|
||||
if ((type == 'm' || grub_strcmp (pu.elf->e_ident + EI_BRAND, "FreeBSD"))
|
||||
if ((type == 'm' || grub_strcmp (pu.elf->e_ident + EI_BRAND, "FreeBSD") == 0)
|
||||
&& len > sizeof (Elf32_Ehdr)
|
||||
&& BOOTABLE_I386_ELF ((*((Elf32_Ehdr *) buffer))))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user