mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
hexadecimal.
This commit is contained in:
1 parent
664889a69c
commit
ee5614b7f8
2 files changed
+9
-1
No files matched your search
@@ -680,7 +680,10 @@ grub_legacy_parse (const char *buf, char **entryname, char **suffix)
|
||||
int base = 10;
|
||||
brk = curarg;
|
||||
if (brk[0] == '0' && brk[1] == 'x')
|
||||
base = 16;
|
||||
{
|
||||
base = 16;
|
||||
brk += 2;
|
||||
}
|
||||
else if (brk[0] == '0')
|
||||
base = 8;
|
||||
for (; *brk && brk < curarg + curarglen; brk++)
|
||||
|
||||
Reference in new issue
Block a user