]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/DxeIpl/SerialStatusCode.c
MdeModulePkg/BDS: Fix a buffer overflow bug
[mirror_edk2.git] / DuetPkg / DxeIpl / SerialStatusCode.c
index 27e8644b38cb3e01dde4847b3500d85b4cd5f1b2..15959323834760e9796dbcb50caa9d4c5661cd4b 100644 (file)
@@ -675,7 +675,7 @@ Returns:
     //\r
     // Callout to platform Lib function to do print.\r
     //\r
-    SerialPortWrite (Buffer, CharCount);\r
+    SerialPortWrite ((UINT8 *) Buffer, CharCount);\r
   }\r
 \r
   //\r
@@ -727,7 +727,7 @@ Returns:
           Instance\r
           );\r
 \r
-        SerialPortWrite (Buffer, CharCount);\r
+        SerialPortWrite ((UINT8 *) Buffer, CharCount);\r
       }\r
     }\r
 \r