X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=IntelFspPkg%2FLibrary%2FBaseFspDebugLibSerialPort%2FDebugLib.c;fp=IntelFspPkg%2FLibrary%2FBaseFspDebugLibSerialPort%2FDebugLib.c;h=55a917b918284c2c9ce09389c7e3cb7f278f1f18;hp=467d59db0ef5a8f89ea19bfe116e3bceb32294dd;hb=a81fcd30c1aff139f0007c277c49c52bf55c303c;hpb=e7a8edfdf6128729737ec9eda360689a972b7c27 diff --git a/IntelFspPkg/Library/BaseFspDebugLibSerialPort/DebugLib.c b/IntelFspPkg/Library/BaseFspDebugLibSerialPort/DebugLib.c index 467d59db0e..55a917b918 100644 --- a/IntelFspPkg/Library/BaseFspDebugLibSerialPort/DebugLib.c +++ b/IntelFspPkg/Library/BaseFspDebugLibSerialPort/DebugLib.c @@ -148,7 +148,7 @@ DebugAssertInternal ( // // Generate the ASSERT() message in Ascii format // - AsciiStrCpy (Buffer, "-> EBP:0x00000000 EIP:0x00000000\n"); + AsciiStrnCpy (Buffer, sizeof(Buffer), "-> EBP:0x00000000 EIP:0x00000000\n"); SerialPortWrite ((UINT8 *)"ASSERT DUMP:\n", 13); while (Frame != NULL) { FillHex ((UINT32)Frame, Buffer + 9);