]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
authorokuji <okuji@localhost>
Sat, 25 Nov 2006 03:21:29 +0000 (03:21 +0000)
committerokuji <okuji@localhost>
Sat, 25 Nov 2006 03:21:29 +0000 (03:21 +0000)
        * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
        the number of sectors.  Reported by Andrey Shuvikov
        <mr_hyro@yahoo.com>.

ChangeLog
THANKS
util/i386/pc/grub-mkimage.c

index 9d42600579e79a32bff08f3588de9d20bf299d1f..ee79af72b4647c3ce236e159aac8f4fbe58464dc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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>.
+       
 2006-11-11  Jeroen Dekkers  <jeroen@dekkers.cx>
 
        * kern/disk.c (grub_disk_read): When there is a read error, always
diff --git a/THANKS b/THANKS
index 1c7abfb115c64562b2190b2973d7c5c883df38d0..d43d6db72d16fd2e60de26391bfbf32c52cb8fcb 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -6,6 +6,7 @@ The following people made especially gracious contributions of their
 time and energy in helping to track down bugs, add new features, and
 generally assist in the GRUB 2 maintainership process:
 
+Andrey Shuvikov <mr_hyro@yahoo.com>
 Bibo Mao <bibo.mao@intel.com>
 Guillem Jover <guillem@hadrons.org>
 Harley D. Eades III <hde@foobar-qux.org>
index 3cd1d589ddefdd34e087a4197821806ba802f6dc..8bb3ea8bff48978e35495837fe2124fb8382f9e1 100644 (file)
@@ -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);