fix a stupid bug
This commit is contained in:
parent
70ba31d512
commit
50fa325cd0
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
1999-08-04 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
|
||||||
|
|
||||||
|
* boot.c (load_image): Fix a strcmp test. Reported by Pavel
|
||||||
|
Roskin <pavel_roskin@geocities.com>.
|
||||||
|
|
||||||
1999-08-03 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
|
1999-08-03 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
|
||||||
|
|
||||||
From "Dan J. Walters" <djw@cs.utexas.edu>:
|
From "Dan J. Walters" <djw@cs.utexas.edu>:
|
||||||
|
|
|
@ -87,7 +87,7 @@ load_image (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ELF loading supported if multiboot and FreeBSD. */
|
/* 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)
|
&& len > sizeof (Elf32_Ehdr)
|
||||||
&& BOOTABLE_I386_ELF ((*((Elf32_Ehdr *) buffer))))
|
&& BOOTABLE_I386_ELF ((*((Elf32_Ehdr *) buffer))))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue