return NULL;\r
}\r
\r
- UnicodeStrToAsciiStr(Unicode, Ascii);\r
+ UnicodeStrToAsciiStrS (Unicode, Ascii, MAX_PASSWORD_SIZE + 1);\r
\r
return Ascii;\r
}\r
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