diff options
author | Jaben Carsey <jaben.carsey@intel.com> | 2014-08-21 22:13:08 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-21 22:13:08 +0000 |
commit | 5eadb80f09b246f6934468535dfcaedaccd59c0c (patch) | |
tree | 1ddccafa318f061c24c1736b427e37eb33129ee9 /ShellPkg | |
parent | a0d367299fab5d7ce1a3b71aea176a500f9e7950 (diff) | |
download | edk2-5eadb80f09b246f6934468535dfcaedaccd59c0c.zip edk2-5eadb80f09b246f6934468535dfcaedaccd59c0c.tar.gz edk2-5eadb80f09b246f6934468535dfcaedaccd59c0c.tar.bz2 |
ShellPkg: leave quotes around params
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15875 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Application/Shell/ShellParametersProtocol.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ShellPkg/Application/Shell/ShellParametersProtocol.c b/ShellPkg/Application/Shell/ShellParametersProtocol.c index 9d76954..75704b4 100644 --- a/ShellPkg/Application/Shell/ShellParametersProtocol.c +++ b/ShellPkg/Application/Shell/ShellParametersProtocol.c @@ -85,7 +85,11 @@ GetNextParameter( StrCpy(*TempParameter, L"");
*Walker = NextDelim + 1;
} else if (NextDelim != NULL) {
- StrnCpy(*TempParameter, (*Walker)+1, NextDelim - ((*Walker)+1));
+
+ //
+ // Copy ensuring that both quotes are left in place.
+ //
+ StrnCpy(*TempParameter, (*Walker), NextDelim - *Walker + 1);
*Walker = NextDelim + 1;
} else {
//
|