fix a stupid bug

This commit is contained in:
okuji committed 1999-08-03 15:45:15 +00:00
1 parent 70ba31d512
commit 50fa325cd0
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -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))))
{