Permalink
Browse files

. 修正错误(issues #145)

  • Loading branch information...
yaya
yaya committed Jun 10, 2017
1 parent 5de20c7 commit 2b6575467822b9b8a3daae29812494ab5ad961c0
Showing with 9 additions and 6 deletions.
  1. +9 −6 stage2/builtins.c
View
@@ -7044,16 +7044,19 @@ get_vol (char* vol_found, int flags)
}
break;
}
-
- if (!flags && iso_type != ISO_TYPE_udf)
- {
pri:
- for (i=0; i<0x20; i++)
+ if (!flags && (iso_type != ISO_TYPE_udf || primary))
+ {
+ if (iso_type == ISO_TYPE_Joliet && !primary)
+ j = 0x10 - 1;
+ else
+ j = 0x20 - 1;
+ for (i=j; i>=0; i--)
{
- if (vol_found[i] == ' ' && (vol_found[i] == vol_found[i+1] || i == 0x19))
+ if (vol_found[i] != ' ')
break;
+ vol_found[i] = 0;
}
- vol_found[i] = 0;
}
#undef BUFFER
}

0 comments on commit 2b65754

Please sign in to comment.