]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Ebl/Dir.c
EmbeddedPkg/Ebl: eliminate deprecated string function calls
[mirror_edk2.git] / EmbeddedPkg / Ebl / Dir.c
index c45f67b95bdca1d35450774a296ecbba54fb95e7..a73c88d3aa2d2724dc0db37a482045ee8eb2321f 100644 (file)
@@ -3,6 +3,7 @@
 \r
   Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
   Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
 \r
 \r
   This program and the accompanying materials\r
@@ -62,6 +63,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED   CHAR8 *gFvFileType[] = {
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 EblDirCmd (\r
   IN UINTN  Argc,\r
   IN CHAR8  **Argv\r
@@ -114,7 +116,8 @@ EblDirCmd (
     UnicodeFileName[0] = '\0';\r
     MatchSubString = &UnicodeFileName[0];\r
     if (Argc > 2) {\r
-      AsciiStrToUnicodeStr (Argv[2], UnicodeFileName);\r
+      AsciiStrToUnicodeStrS (Argv[2], UnicodeFileName,\r
+        ARRAY_SIZE (UnicodeFileName));\r
       if (UnicodeFileName[0] == '*') {\r
         // Handle *Name substring matching\r
         MatchSubString = &UnicodeFileName[1];\r
@@ -229,7 +232,7 @@ EblDirCmd (
     MatchSubString = NULL;\r
     UnicodeFileName[0] = '\0';\r
     if (Argc > 2) {\r
-      AsciiStrToUnicodeStr (Argv[2], UnicodeFileName);\r
+      AsciiStrToUnicodeStrS (Argv[2], UnicodeFileName, MAX_CMD_LINE);\r
       if (UnicodeFileName[0] == '*') {\r
         MatchSubString = &UnicodeFileName[1];\r
       }\r
@@ -307,6 +310,7 @@ Done:
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 EblCdCmd (\r
   IN UINTN  Argc,\r
   IN CHAR8  **Argv\r