]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg/UefiDebugLibStdErr: Pass the correct buffer size
authorMarvin Haeuser <mhaeuser@outlook.de>
Sun, 20 Oct 2019 17:28:14 +0000 (01:28 +0800)
committerLiming Gao <liming.gao@intel.com>
Mon, 4 Nov 2019 00:52:04 +0000 (08:52 +0800)
commit787c4baace1c0c49fa1628990402be8997294d17
treedabc606cceb736f47b4675e0e2bd422d2ee5b259
parent5ae6c993ab75c694831547b7436543a41d60458a
MdePkg/UefiDebugLibStdErr: 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/UefiDebugLibStdErr/DebugLib.c