diff options
author | Star Zeng <star.zeng@intel.com> | 2015-11-04 01:56:29 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@Edk2> | 2015-11-04 01:56:29 +0000 |
commit | b9ffeab7b0856db6409b53efbba51b8c336b7491 (patch) | |
tree | 52de9fae501078d10c45a6eae57b8aadb5395bd0 | |
parent | e5cffcad87b4d8a32e64def9663535f9cfc349a6 (diff) | |
download | edk2-b9ffeab7b0856db6409b53efbba51b8c336b7491.tar.gz edk2-b9ffeab7b0856db6409b53efbba51b8c336b7491.tar.bz2 edk2-b9ffeab7b0856db6409b53efbba51b8c336b7491.zip |
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.carsey@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18725 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | ShellPkg/Library/UefiDpLib/DpUtilities.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ShellPkg/Library/UefiDpLib/DpUtilities.c b/ShellPkg/Library/UefiDpLib/DpUtilities.c index 5237459e5b..e9d8fb3adf 100644 --- a/ShellPkg/Library/UefiDpLib/DpUtilities.c +++ b/ShellPkg/Library/UefiDpLib/DpUtilities.c @@ -164,8 +164,8 @@ DpGetShortPdbFileName ( 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;
}
}
|