mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Added handling of alphabetic partition ids as used in Sparc. Fixed sizes
reported. git-svn-id: svn://coreboot.org/openbios/openbios-devel@30 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -63,7 +63,9 @@ dlabel_open( dlabel_info_t *di )
|
||||
s = parstr;
|
||||
filename = NULL;
|
||||
if( s ) {
|
||||
if( *s == '-' || isdigit(*s) ) {
|
||||
if( *s == '-' || isdigit(*s) ||
|
||||
(*s >= 'a' && *s < ('a' + 8)
|
||||
&& (*(s + 1) == ',' || *(s + 1) == '\0'))) {
|
||||
if( (s=strpbrk(parstr,",")) ) {
|
||||
filename = s+1;
|
||||
*s = 0;
|
||||
|
||||
Reference in New Issue
Block a user