]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/EmuBusDriverDxe/EmuBusDriverDxe.c
EmulatorPkg: Add -D DISABLE_NEW_DEPRECATED_INTERFACES
[mirror_edk2.git] / EmulatorPkg / EmuBusDriverDxe / EmuBusDriverDxe.c
index 0bf6e723a1d1b04cac649274e05ee86fea95baee..d8380f2be9cecf7e5008637c8b4907fd247d2d3c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
  Emu Bus driver\r
 \r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
 SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
@@ -256,7 +256,12 @@ EmuBusDriverBindingStart (
 \r
       EmuDevice->ControllerNameTable = NULL;\r
 \r
-      StrnCpy (ComponentName, EmuIoThunk->ConfigString, sizeof (ComponentName)/sizeof (CHAR16));\r
+      StrnCpyS (\r
+        ComponentName,\r
+        sizeof (ComponentName) / sizeof (CHAR16),\r
+        EmuIoThunk->ConfigString,\r
+        sizeof (ComponentName) / sizeof (CHAR16)\r
+        );\r
 \r
       EmuDevice->DevicePath = EmuBusCreateDevicePath (\r
                                   ParentDevicePath,\r