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:
Stefan Reinauer
2006-05-24 10:59:54 +00:00
parent 75f5762e6e
commit 8f49c10b5f
2 changed files with 27 additions and 12 deletions

View File

@@ -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;