* grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle

hexadecimal.
This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2011-05-05 01:27:54 +02:00
1 parent 664889a69c
commit ee5614b7f8
2 files changed
+9 -1

No files matched your search

+4 -1
View File
@@ -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++)