summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/Universal/Acpi
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2015-06-30 06:30:44 +0000
committerhwu1225 <hwu1225@Edk2>2015-06-30 06:30:44 +0000
commit274e8433567bf4a30e8dcfc2d290d3c7899171f6 (patch)
treeecd721ebd5bbc7990b9184b5725064464cc57722 /UefiCpuPkg/Universal/Acpi
parentc42b399a086638db9f5f2f0af0520fd5e6be5855 (diff)
downloadedk2-274e8433567bf4a30e8dcfc2d290d3c7899171f6.tar.gz
edk2-274e8433567bf4a30e8dcfc2d290d3c7899171f6.tar.bz2
edk2-274e8433567bf4a30e8dcfc2d290d3c7899171f6.zip
UefiCpuPkg S3Resume2Pei: Use safe string functions
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17744 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg/Universal/Acpi')
-rw-r--r--UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c b/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c
index aa1c803291..d9d4ecbdcb 100644
--- a/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c
+++ b/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c
@@ -4,7 +4,7 @@
This module will excute the boot script saved during last boot and after that,
control is passed to OS waking up handler.
- Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions
@@ -366,8 +366,7 @@ WriteToOsS3PerformanceData (
if ((AsciiStrnCmp (Token, "PEIM", PEI_PERFORMANCE_STRING_SIZE) == 0) && (Handle != NULL)) {
AsciiSPrint (PerfData->Token, PERF_TOKEN_LENGTH, "0x%11p", Handle);
} else {
- AsciiStrnCpy (PerfData->Token, Token, PERF_TOKEN_LENGTH);
- PerfData->Token[PERF_TOKEN_LENGTH] = '\0';
+ AsciiStrCpyS (PerfData->Token, PERF_TOKEN_SIZE, Token);
}
if (StartTicker == 1) {
StartTicker = StartValue;