StdLib: Reverse a previous change resulting in string pointers that were not being incremented sufficiently to accommodate the terminating NUL.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: daryl.mcdaniel@intel.com Reviewed-by: Fernandes, Cristiano <cristiano.fernandes@hp.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13834 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -112,7 +112,7 @@ DEBUG_CODE_END();
|
|||||||
string = gMD->NCmdLine;
|
string = gMD->NCmdLine;
|
||||||
for(count = 0; count < Argc; ++count) {
|
for(count = 0; count < Argc; ++count) {
|
||||||
nArgv[count] = string;
|
nArgv[count] = string;
|
||||||
AVsz = wcstombs(string, Argv[count], nArgvSize);
|
AVsz = wcstombs(string, Argv[count], nArgvSize) + 1;
|
||||||
DEBUG((DEBUG_INFO, "Cvt[%d] %d \"%s\" --> \"%a\"\n", (INT32)count, (INT32)AVsz, Argv[count], nArgv[count]));
|
DEBUG((DEBUG_INFO, "Cvt[%d] %d \"%s\" --> \"%a\"\n", (INT32)count, (INT32)AVsz, Argv[count], nArgv[count]));
|
||||||
string += AVsz;
|
string += AVsz;
|
||||||
nArgvSize -= AVsz;
|
nArgvSize -= AVsz;
|
||||||
|
Reference in New Issue
Block a user