diff options
Diffstat (limited to 'NetworkPkg/Dhcp6Dxe/ComponentName.c')
-rw-r--r-- | NetworkPkg/Dhcp6Dxe/ComponentName.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NetworkPkg/Dhcp6Dxe/ComponentName.c b/NetworkPkg/Dhcp6Dxe/ComponentName.c index 352df087f9..c7fd6075df 100644 --- a/NetworkPkg/Dhcp6Dxe/ComponentName.c +++ b/NetworkPkg/Dhcp6Dxe/ComponentName.c @@ -1,7 +1,7 @@ /** @file
UEFI Component Name(2) protocol implementation for Dhcp6 driver.
- Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -281,7 +281,7 @@ UpdateName ( if (Dhcp6ModeData.Ia == NULL) {
UnicodeSPrint (HandleName, sizeof (HandleName), L"DHCPv6 (No configured IA)");
} else {
- StrCpy (HandleName, mDhcp6ControllerName[Dhcp6ModeData.Ia->State]);
+ StrnCpy (HandleName, mDhcp6ControllerName[Dhcp6ModeData.Ia->State], sizeof (HandleName) / sizeof (CHAR16) - 1);
}
Status = AddUnicodeString2 (
|