]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c
SecurityPkg: Fix typos in comments
[mirror_edk2.git] / SecurityPkg / Tcg / Opal / OpalPasswordDxe / OpalDriver.c
index 3764b243444c6d8efbe46eb68d26dbe10734ba22..bd12d5ad8010f3ecd9c5ab905ad82ae34c1876a1 100644 (file)
@@ -239,7 +239,7 @@ OpalDriverPopUpHddPassword (
     return NULL;\r
   }\r
 \r
-  UnicodeStrToAsciiStr(Unicode, Ascii);\r
+  UnicodeStrToAsciiStrS (Unicode, Ascii, MAX_PASSWORD_SIZE + 1);\r
 \r
   return Ascii;\r
 }\r
@@ -406,7 +406,7 @@ OpalDriverGetDeviceList(
   ReadyToBoot callback to send BlockSid command.\r
 \r
   @param  Event   Pointer to this event\r
-  @param  Context Event hanlder private Data\r
+  @param  Context Event handler private Data\r
 \r
 **/\r
 VOID\r
@@ -616,7 +616,7 @@ OpalDriverGetDeviceNameByProtocol(
         ASSERT (Dev->Name16 != NULL);\r
         StrCpyS (Dev->Name16, StrLength, DevName);\r
         Dev->NameZ = (CHAR8*)AllocateZeroPool(StrLength);\r
-        UnicodeStrToAsciiStr(DevName, Dev->NameZ);\r
+        UnicodeStrToAsciiStrS (DevName, Dev->NameZ, StrLength);\r
 \r
         //\r
         // Retrieve bridge BDF info and port number or namespace depending on type\r