]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Ip6Dxe/Ip6ConfigNv.c
BaseTools: remove uncalled functions
[mirror_edk2.git] / NetworkPkg / Ip6Dxe / Ip6ConfigNv.c
index eaeb44b2a1cf803c6db3c8b494a8ce4af070db85..1b878a56a3aae87b8d8f0909a5b1bf791f8408af 100644 (file)
@@ -1,7 +1,7 @@
 /** @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
@@ -600,6 +600,7 @@ Ip6ParseAddressListFromString (
     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
@@ -717,9 +718,9 @@ Ip6ConvertInterfaceInfoToString (
   // 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
@@ -746,9 +747,9 @@ Ip6ConvertInterfaceInfoToString (
   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