diff options
Diffstat (limited to 'MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c')
-rw-r--r-- | MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c b/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c index dd937a7396..7b13ec663c 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c @@ -320,7 +320,7 @@ BmWriteBootToOsPerformanceData ( ZeroMem (&mBmPerfData, sizeof (PERF_DATA));
- AsciiStrCpyS (mBmPerfData.Token, PERF_TOKEN_SIZE, Token);
+ AsciiStrnCpyS (mBmPerfData.Token, PERF_TOKEN_SIZE, Token, PERF_TOKEN_LENGTH);
if (StartTicker == 1) {
StartTicker = StartValue;
}
|