Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GSwcp-0000a6-N5 for mharc-grub-devel@gnu.org; Thu, 28 Sep 2006 10:12:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GSwcn-0000YN-TV for grub-devel@gnu.org; Thu, 28 Sep 2006 10:12:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GSwcm-0000XQ-BL for grub-devel@gnu.org; Thu, 28 Sep 2006 10:12:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSwcm-0000XL-9P for grub-devel@gnu.org; Thu, 28 Sep 2006 10:12:28 -0400 Received: from [212.27.42.29] (helo=smtp3-g19.free.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GSwhs-0001F0-Bf for grub-devel@gnu.org; Thu, 28 Sep 2006 10:17:44 -0400 Received: from imp1-g19.free.fr (imp1-g19.free.fr [212.27.42.1]) by smtp3-g19.free.fr (Postfix) with ESMTP id 943D449B46 for ; Thu, 28 Sep 2006 16:12:27 +0200 (CEST) Received: by imp1-g19.free.fr (Postfix, from userid 33) id 865B4464D; Thu, 28 Sep 2006 16:12:27 +0200 (CEST) Received: from 129.184.84.11 ([129.184.84.11]) by imp1-g19.free.fr (IMP) with HTTP for ; Thu, 28 Sep 2006 16:12:27 +0200 Message-ID: <1159452747.451bd84b6c61a@imp1-g19.free.fr> Date: Thu, 28 Sep 2006 16:12:27 +0200 From: tgingold@free.fr To: grub-devel@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 129.184.84.11 Content-Transfer-Encoding: quoted-printable Subject: Fix grub_strtoull X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2006 14:12:30 -0000 Hi, this patch is extracted from my previous ia64 patches. Tristan. 2006-09-28 Tristan Gingold * 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] =3D=3D '0') + if (base =3D=3D 0 && str[0] =3D=3D '0') { if (str[1] =3D=3D 'x') {