grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix grub_strtoull


From: tgingold
Subject: Fix grub_strtoull
Date: Thu, 28 Sep 2006 16:12:27 +0200
User-agent: Internet Messaging Program (IMP) 3.2.5

Hi,

this patch is extracted from my previous ia64 patches.

Tristan.

2006-09-28  Tristan Gingold  <address@hidden>

        * kern/misc.c (grub_strtoull): guess the base only if not specified.

--- grub2.cvs/kern/misc.c       2006-06-04 17:56:54.000000000 +0200
+++ grub2/kern/misc.c   2006-09-27 08:15:44.000000000 +0200
@@ -366,7 +386,7 @@

   /* Guess the base, if not specified. The prefix `0x' means 16, and
      the prefix `0' means 8.  */
-  if (str[0] == '0')
+  if (base == 0 && str[0] == '0')
     {
       if (str[1] == 'x')
        {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]