]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiDebugLibConOut/DebugLib.c
MdePkg/UefiDebugLibConOut: Pass the correct buffer size
[mirror_edk2.git] / MdePkg / Library / UefiDebugLibConOut / DebugLib.c
index cf168d05cf21d18d0a687948a68a3192de105642..8ea38ea7cc7c9cb7ad20747d0a721e6fd409b235 100644 (file)
@@ -104,9 +104,9 @@ DebugPrintMarker (
     // Convert the DEBUG() message to a Unicode String\r
     //\r
     if (BaseListMarker == NULL) {\r
-      UnicodeVSPrintAsciiFormat (Buffer, MAX_DEBUG_MESSAGE_LENGTH,  Format, VaListMarker);\r
+      UnicodeVSPrintAsciiFormat (Buffer, sizeof (Buffer), Format, VaListMarker);\r
     } else {\r
-      UnicodeBSPrintAsciiFormat (Buffer, MAX_DEBUG_MESSAGE_LENGTH,  Format, BaseListMarker);\r
+      UnicodeBSPrintAsciiFormat (Buffer, sizeof (Buffer), Format, BaseListMarker);\r
     }\r
 \r
 \r