summaryrefslogtreecommitdiffstats
path: root/nhrpd/linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'nhrpd/linux.c')
-rw-r--r--nhrpd/linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nhrpd/linux.c b/nhrpd/linux.c
index 85e941e7b..bb5ce0fec 100644
--- a/nhrpd/linux.c
+++ b/nhrpd/linux.c
@@ -110,7 +110,7 @@ static int linux_configure_arp(const char *iface, int on)
{
struct ifreq ifr;
- strncpy(ifr.ifr_name, iface, IFNAMSIZ - 1);
+ strlcpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name));
if (ioctl(nhrp_socket_fd, SIOCGIFFLAGS, &ifr))
return -1;