mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/Library/SmmCorePerformanceLib: Use safe string functions to refine code.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin <shumin.qiu@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17781 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e1565962dc
commit
93fd37dc0b
|
@ -203,10 +203,10 @@ StartGaugeEx (
|
||||||
GaugeEntryExArray[Index].Handle = (EFI_PHYSICAL_ADDRESS) (UINTN) Handle;
|
GaugeEntryExArray[Index].Handle = (EFI_PHYSICAL_ADDRESS) (UINTN) Handle;
|
||||||
|
|
||||||
if (Token != NULL) {
|
if (Token != NULL) {
|
||||||
AsciiStrnCpy (GaugeEntryExArray[Index].Token, Token, SMM_PERFORMANCE_STRING_LENGTH);
|
AsciiStrCpyS (GaugeEntryExArray[Index].Token, SMM_PERFORMANCE_STRING_SIZE, Token);
|
||||||
}
|
}
|
||||||
if (Module != NULL) {
|
if (Module != NULL) {
|
||||||
AsciiStrnCpy (GaugeEntryExArray[Index].Module, Module, SMM_PERFORMANCE_STRING_LENGTH);
|
AsciiStrCpyS (GaugeEntryExArray[Index].Module, SMM_PERFORMANCE_STRING_SIZE, Module);
|
||||||
}
|
}
|
||||||
|
|
||||||
GaugeEntryExArray[Index].EndTimeStamp = 0;
|
GaugeEntryExArray[Index].EndTimeStamp = 0;
|
||||||
|
|
Loading…
Reference in New Issue