]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/Library/SmbiosLib/SmbiosLib.c
EmulatorPkg: Add -D DISABLE_NEW_DEPRECATED_INTERFACES
[mirror_edk2.git] / EmulatorPkg / Library / SmbiosLib / SmbiosLib.c
index 331122e200efb9eeec9731a1afdaf49610639607..3acbb23644aaf5bde4a0cd8508bbd21e9fe38f0a 100644 (file)
@@ -4,7 +4,7 @@
 \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
@@ -223,7 +223,7 @@ SmbiosLibUpdateUnicodeString (
   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