]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Correct AsciiStrnCpy.
authorjyao1 <jyao1>
Fri, 8 Aug 2014 00:21:18 +0000 (00:21 +0000)
committerjyao1 <jyao1@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 8 Aug 2014 00:21:18 +0000 (00:21 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0

Signed off by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed by: Eric Dong <eric.dong@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15772 6f19259b-4bc3-4df7-8a09-765794883524

IntelFspPkg/Library/BaseFspDebugLibSerialPort/DebugLib.c

index 55a917b918284c2c9ce09389c7e3cb7f278f1f18..471659072cce174914a67308daed88f6c92c2c6f 100644 (file)
@@ -148,7 +148,7 @@ DebugAssertInternal (
   //\r
   // Generate the ASSERT() message in Ascii format\r
   //\r
   //\r
   // Generate the ASSERT() message in Ascii format\r
   //\r
-  AsciiStrnCpy (Buffer, sizeof(Buffer), "-> EBP:0x00000000  EIP:0x00000000\n");\r
+  AsciiStrnCpy (Buffer, "-> EBP:0x00000000  EIP:0x00000000\n", sizeof(Buffer));\r
   SerialPortWrite ((UINT8 *)"ASSERT DUMP:\n", 13);\r
   while (Frame != NULL) {\r
     FillHex ((UINT32)Frame, Buffer + 9);\r
   SerialPortWrite ((UINT8 *)"ASSERT DUMP:\n", 13);\r
   while (Frame != NULL) {\r
     FillHex ((UINT32)Frame, Buffer + 9);\r