]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c
UefiCpuPkg: INF/DEC file updates to EDK II packages
[mirror_edk2.git] / UefiCpuPkg / Universal / Acpi / S3Resume2Pei / S3Resume.c
index f5100fa9add2cedb3053f7a72d61b7f49882f7e6..aa1c8032915879eae905b4bfc0dbecb1b938f6d8 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  This module produces the EFI_PEI_S3_RESUME_PPI.\r
+  This module produces the EFI_PEI_S3_RESUME2_PPI.\r
   This module works with StandAloneBootScriptExecutor to S3 resume to OS.\r
   This module will excute the boot script saved during last boot and after that,\r
   control is passed to OS waking up handler.\r
@@ -367,6 +367,7 @@ WriteToOsS3PerformanceData (
         AsciiSPrint (PerfData->Token, PERF_TOKEN_LENGTH, "0x%11p", Handle);\r
       } else {\r
         AsciiStrnCpy (PerfData->Token, Token, PERF_TOKEN_LENGTH);\r
+        PerfData->Token[PERF_TOKEN_LENGTH] = '\0';\r
       }\r
       if (StartTicker == 1) {\r
         StartTicker = StartValue;\r