diff options
author | Jorge Boncompte <jbonor@gmail.com> | 2017-08-10 21:21:14 +0200 |
---|---|---|
committer | Jorge Boncompte <jbonor@gmail.com> | 2017-08-10 21:21:14 +0200 |
commit | 6c8ca260505bf1d96c87371ad71278576345bb5c (patch) | |
tree | bf5b48ca98b8c2fd96cc571ebc3669f8b6428ac4 /nhrpd/linux.c | |
parent | Merge pull request #941 from dwalton76/bgpd-peer-group-rebind (diff) | |
download | frr-6c8ca260505bf1d96c87371ad71278576345bb5c.tar.xz frr-6c8ca260505bf1d96c87371ad71278576345bb5c.zip |
nhrpd: fix issues found by coverity
Signed-off-by: Jorge Boncompte <jbonor@gmail.com>
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 75a16eab3..88804a87d 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; |