summaryrefslogtreecommitdiff
path: root/ShellPkg
diff options
context:
space:
mode:
authorJaben Carsey <jaben.carsey@intel.com>2014-08-21 22:13:08 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2014-08-21 22:13:08 +0000
commit5eadb80f09b246f6934468535dfcaedaccd59c0c (patch)
tree1ddccafa318f061c24c1736b427e37eb33129ee9 /ShellPkg
parenta0d367299fab5d7ce1a3b71aea176a500f9e7950 (diff)
downloadedk2-platforms-5eadb80f09b246f6934468535dfcaedaccd59c0c.tar.xz
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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ShellPkg/Application/Shell/ShellParametersProtocol.c b/ShellPkg/Application/Shell/ShellParametersProtocol.c
index 9d769541c6..75704b4ae0 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 {
//