diff options
Diffstat (limited to 'Services/DHCPClient/DHCPv4Client.cpp')
-rw-r--r-- | Services/DHCPClient/DHCPv4Client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Services/DHCPClient/DHCPv4Client.cpp b/Services/DHCPClient/DHCPv4Client.cpp index 918a20b93f..8b8e6b228c 100644 --- a/Services/DHCPClient/DHCPv4Client.cpp +++ b/Services/DHCPClient/DHCPv4Client.cpp @@ -70,7 +70,7 @@ static void set_params(const InterfaceDescriptor& iface, const IPv4Address& ipv4 struct ifreq ifr; memset(&ifr, 0, sizeof(ifr)); - strncpy(ifr.ifr_name, iface.m_ifname.characters(), IFNAMSIZ); + strlcpy(ifr.ifr_name, iface.m_ifname.characters(), IFNAMSIZ); // set the IP address ifr.ifr_addr.sa_family = AF_INET; |