Revision: 18725 http://sourceforge.net/p/edk2/code/18725 Author: lzeng14 Date: 2015-11-04 01:56:29 +0000 (Wed, 04 Nov 2015) Log Message: ----------- ShellPkg UefiDpLib: Use correct string length for the input UnicodeBuffer
Same as the beginning of function to use DP_GAUGE_STRING_LENGTH, but not DXE_PERFORMANCE_STRING_LENGTH. Cc: Jaben Carsey <jaben.car...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.z...@intel.com> Reviewed-by: Jaben Carsey <jaben.car...@intel.com> Modified Paths: -------------- trunk/edk2/ShellPkg/Library/UefiDpLib/DpUtilities.c Modified: trunk/edk2/ShellPkg/Library/UefiDpLib/DpUtilities.c =================================================================== --- trunk/edk2/ShellPkg/Library/UefiDpLib/DpUtilities.c 2015-11-03 18:58:06 UTC (rev 18724) +++ trunk/edk2/ShellPkg/Library/UefiDpLib/DpUtilities.c 2015-11-04 01:56:29 UTC (rev 18725) @@ -164,8 +164,8 @@ for (IndexA = StartIndex; IndexA < EndIndex; IndexA++) { UnicodeBuffer[IndexU] = (CHAR16) PdbFileName[IndexA]; IndexU++; - if (IndexU >= DXE_PERFORMANCE_STRING_LENGTH) { - UnicodeBuffer[DXE_PERFORMANCE_STRING_LENGTH] = 0; + if (IndexU >= DP_GAUGE_STRING_LENGTH) { + UnicodeBuffer[DP_GAUGE_STRING_LENGTH] = 0; break; } } ------------------------------------------------------------------------------ _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits