]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiDebugLibStdErr/DebugLib.c
MdePkg/UefiDebugLibStdErr: Pass the correct buffer size
[mirror_edk2.git] / MdePkg / Library / UefiDebugLibStdErr / DebugLib.c
index 40eb697e7e2cab2e1762d1e7904b0a7c782e14d0..fcfdafede08fd69ed757e38359f441e477d4cb71 100644 (file)
@@ -106,9 +106,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