]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.c
MdePkg: Replace UnicodeStrToAsciiStr() with UnicodeStrToAsciiStrS()
[mirror_edk2.git] / MdePkg / Library / UefiFileHandleLib / UefiFileHandleLib.c
index dfec5fa4d47d0917389ab9b0e398eaa9fa96da21..8f3cde0f6c4140df7260094bd17304aeae7ec3b0 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Provides interface to EFI_FILE_HANDLE functionality.\r
 \r
-  Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2006 - 2016, 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
@@ -1136,7 +1136,7 @@ FileHandleWriteLine(
     if (AsciiBuffer == NULL) {\r
       return EFI_OUT_OF_RESOURCES;\r
     }\r
-    UnicodeStrToAsciiStr (Buffer, AsciiBuffer);\r
+    UnicodeStrToAsciiStrS (Buffer, AsciiBuffer, Size);\r
     for (Index = 0; Index < Size; Index++) {\r
       if (!((AsciiBuffer[Index] >= 0) && (AsciiBuffer[Index] < 128))){\r
         FreePool(AsciiBuffer);\r