Skip to contentSkip to conversation

Fix grub_strtoull

PATCH [email protected] 2 participants 2 messages Sep 28, 2006 – Oct 5, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

this patch is extracted from my previous ia64 patches.

Tristan.

2006-09-28 Tristan Gingold <[email protected]>

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

kern/misc.c +1 -1
@@ -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')
 	{