mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
* util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
the number of sectors. Reported by Andrey Shuvikov
<mr_hyro@yahoo.com>.
This commit is contained in:
1 parent
790707f254
commit
4e7399859b
3 files changed
+9
-2
No files matched your search
@@ -1,7 +1,7 @@
|
||||
/* grub-mkimage.c - make a bootable image */
|
||||
/*
|
||||
* GRUB -- GRand Unified Bootloader
|
||||
* Copyright (C) 2002,2003,2004,2005 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2002,2003,2004,2005,2006 Free Software Foundation, Inc.
|
||||
*
|
||||
* GRUB is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -143,7 +143,7 @@ generate_image (const char *dir, FILE *out, char *mods[])
|
||||
|
||||
/* i386 is a little endian architecture. */
|
||||
*((grub_uint16_t *) (boot_img + GRUB_DISK_SECTOR_SIZE
|
||||
- GRUB_BOOT_MACHINE_LIST_SIZE + 4))
|
||||
- GRUB_BOOT_MACHINE_LIST_SIZE + 8))
|
||||
= grub_cpu_to_le16 (num);
|
||||
|
||||
grub_util_write_image (boot_img, boot_size, out);
|
||||
|
||||
Reference in new issue
Block a user