ShellPkg: Skip leading tabs when processing command line and scripts
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips <chrisp@hp.com> reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14850 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1415,9 +1415,9 @@ RunCommand(
|
||||
}
|
||||
|
||||
//
|
||||
// Remove any spaces at the beginning of the string.
|
||||
// Remove any spaces and tabs at the beginning of the string.
|
||||
//
|
||||
while (CleanOriginal[0] == L' ') {
|
||||
while ((CleanOriginal[0] == L' ') || (CleanOriginal[0] == L'\t')) {
|
||||
CopyMem(CleanOriginal, CleanOriginal+1, StrSize(CleanOriginal) - sizeof(CleanOriginal[0]));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user