/** @file\r
Helper functions for configuring or obtaining the parameters relating to IP6.\r
\r
- Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
+ ZeroMem (&AddressInfo, sizeof (EFI_IP6_ADDRESS_INFO));\r
LocalString = (CHAR16 *) AllocateCopyPool (StrSize (String), String);\r
if (LocalString == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
// Print the interface type.\r
//\r
if (IfInfo->IfType == Ip6InterfaceTypeEthernet) {\r
- StrCpy (PortString, IP6_ETHERNET);\r
+ CopyMem (PortString, IP6_ETHERNET, sizeof (IP6_ETHERNET));\r
} else if (IfInfo->IfType == Ip6InterfaceTypeExperimentalEthernet) {\r
- StrCpy (PortString, IP6_EXPERIMENTAL_ETHERNET);\r
+ CopyMem (PortString, IP6_EXPERIMENTAL_ETHERNET, sizeof (IP6_EXPERIMENTAL_ETHERNET));\r
} else {\r
//\r
// Refer to RFC1700, chapter Number Hardware Type.\r
for (Index = 0; Index < IfInfo->HwAddressSize; Index++) {\r
\r
if (IfInfo->HwAddress.Addr[Index] < 0x10) {\r
- StrCpy (FormatString, L"0%x-");\r
+ CopyMem (FormatString, L"0%x-", sizeof (L"0%x-"));\r
} else {\r
- StrCpy (FormatString, L"%x-");\r
+ CopyMem (FormatString, L"%x-", sizeof (L"%x-"));\r
}\r
\r
Number = UnicodeSPrint (\r