mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-06 16:22:52 +00:00
* grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
hexadecimal.
This commit is contained in:
parent
664889a69c
commit
ee5614b7f8
@ -1,3 +1,8 @@
|
||||
2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
|
||||
hexadecimal.
|
||||
|
||||
2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
|
||||
|
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user