\r
\r
Copyright (c) 2012, Apple Inc. All rights reserved.\r
-Portitions Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Portitions Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
if (Ascii == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r
- UnicodeStrToAsciiStr (String, Ascii);\r
+ UnicodeStrToAsciiStrS (String, Ascii, StrSize (String));\r
\r
StringIndex = StringNumber;\r
Status = gSmbios->UpdateString (gSmbios, &SmbiosHandle, &StringIndex, Ascii);\r