diff options
Diffstat (limited to 'nhrpd/linux.c')
| -rw-r--r-- | nhrpd/linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nhrpd/linux.c b/nhrpd/linux.c index 75a16eab37..88804a87d6 100644 --- a/nhrpd/linux.c +++ b/nhrpd/linux.c @@ -105,7 +105,7 @@ static int linux_configure_arp(const char *iface, int on) { struct ifreq ifr; - strncpy(ifr.ifr_name, iface, IFNAMSIZ); + strncpy(ifr.ifr_name, iface, IFNAMSIZ - 1); if (ioctl(nhrp_socket_fd, SIOCGIFFLAGS, &ifr)) return -1; |
