From 856d643816fc04c5645bba4eafce4de675649c4f Mon Sep 17 00:00:00 2001 From: lgao4 Date: Tue, 12 Jun 2012 02:16:16 +0000 Subject: Update PeiDxeDebugDebugLibReportStatusCode to use CopyMem() in place of AsciiStrnCpy() to copy ASCII string to save size. Signed-off-by: Liming Gao Reviewed-by: Jeff Fan git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13441 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/PeiDxeDebugLibReportStatusCode/DebugLib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c b/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c index 0d794df..7f7a98c 100644 --- a/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c +++ b/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c @@ -303,14 +303,14 @@ DebugAssert ( // // Copy Ascii FileName including NULL terminator. // - Temp = AsciiStrnCpy ((CHAR8 *)(AssertData + 1), FileName, FileNameSize); + Temp = CopyMem (AssertData + 1, FileName, FileNameSize); Temp[FileNameSize - 1] = 0; TotalSize += FileNameSize; // // Copy Ascii Description include NULL terminator. // - Temp = AsciiStrnCpy (Temp + FileNameSize, Description, DescriptionSize); + Temp = CopyMem (Temp + FileNameSize, Description, DescriptionSize); Temp[DescriptionSize - 1] = 0; TotalSize += DescriptionSize; -- cgit v1.1