]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiDebugLibStdErr/DebugLib.c
Should pass in bytes of string buffer to UnicodeSPrint() rather than Unicode string...
[mirror_edk2.git] / MdePkg / Library / UefiDebugLibStdErr / DebugLib.c
index 73c720497cd8193e610e5cb106d3be58b62ab998..a0aa873a4e52426a959c0bac4e06d757bea6f2a8 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   UEFI Debug Lib that sends messages to the Standard Error Device in the EFI System Table.\r
 \r
-  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
@@ -121,7 +121,7 @@ DebugAssert (
   //\r
   UnicodeSPrintAsciiFormat (\r
     Buffer, \r
-    MAX_DEBUG_MESSAGE_LENGTH,\r
+    sizeof (Buffer),\r
     "ASSERT %a(%d): %a\n", \r
     FileName, \r
     LineNumber, \r