2006-10-05 Tristan Gingold <tristan.gingold@bull.net>

* kern/misc.c (grub_strtoull): Guess the base only if not
        specified.
This commit is contained in:
jrydberg 2006-10-05 12:19:56 +00:00
parent 4f0acd3924
commit da849d2df5
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
* kern/misc.c (grub_strtoull): Guess the base only if not
specified.
2005-10-01 Hollis Blanchard <hollis@penguinppc.org>
* kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World

View file

@ -366,7 +366,7 @@ grub_strtoull (const char *str, char **end, int base)
/* 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')
{