]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-07-28 Felix Zielcke <fzielcke@z-51.de>
authorfzielcke <fzielcke@localhost>
Tue, 28 Jul 2009 15:58:40 +0000 (15:58 +0000)
committerfzielcke <fzielcke@localhost>
Tue, 28 Jul 2009 15:58:40 +0000 (15:58 +0000)
* util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
when embedding.

ChangeLog
util/i386/pc/grub-setup.c

index 4334178265e503608e51108a055b2ad35f9a85fe..2f83512a3071aa7ffaf17d4fc9d18508e2e63b6e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-07-28  Felix Zielcke  <fzielcke@z-51.de>
+
+       * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
+       when embedding.
+
 2009-07-26  Felix Zielcke  <fzielcke@z-51.de>
 
        * util/grub-mkconfig.in (package_version): New variable.
index 852b49894fcf4f92e44c8fa0772426dffd7b0959..38547e5341e48b49f1f91bf7d22c2b2b654e759f 100644 (file)
@@ -352,9 +352,9 @@ setup (const char *dir,
 
   if ((unsigned long) core_sectors > embed_region.end - embed_region.start)
     {
-      if (core_sectors > 62 * 512)
+      if (core_sectors > 62)
        grub_util_warn ("Your core.img is unusually large.  It won't fit in the embedding area.");
-      else if (embed_region.end - embed_region.start < 62 * 512)
+      else if (embed_region.end - embed_region.start < 62)
        grub_util_warn ("Your embedding area is unusually small.  core.img won't fit in it.");
       else
        grub_util_warn ("Embedding area is too small for core.img.");