]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Library/UefiDebugLibConOut/DebugLib.c
MdePkg/UefiDebugLibConOut: Pass the correct buffer size
authorMarvin Haeuser <mhaeuser@outlook.de>
Sun, 20 Oct 2019 12:08:35 +0000 (20:08 +0800)
committerLiming Gao <liming.gao@intel.com>
Mon, 4 Nov 2019 00:52:01 +0000 (08:52 +0800)
commit5ae6c993ab75c694831547b7436543a41d60458a
tree0b5c3dc82186c42bf8d4fb8c0092737e626198cb
parente2fc50812895b17e8b23f5a9c43cde29531b200f
MdePkg/UefiDebugLibConOut: Pass the correct buffer size

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2302

The second argument of "UnicodeVSPrintAsciiFormat" is "BufferSize",
which takes the size of the buffer in bytes. Replace the currently
used MAX_DEBUG_MESSAGE_LENGTH usage, which is the buffer's length,
with the actual buffer size.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Marvin Haeuser <mhaeuser@outlook.de>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Library/UefiDebugLibConOut/DebugLib.c