summaryrefslogtreecommitdiff
path: root/zebra/ioctl.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <Jafaral@users.noreply.github.com>2017-08-31 10:25:55 -0500
committerGitHub <noreply@github.com>2017-08-31 10:25:55 -0500
commit959768e8d049303c434bcb67e64d19bae65d073a (patch)
tree0387049fc8de44d6a22fafe639f58f6cfb9113f7 /zebra/ioctl.c
parentedfb96d21eb0dc5ad4578d74597bc397e22f6e08 (diff)
parent1e9f448fe1b60e464d187c96092d2cf6201e64e1 (diff)
Merge pull request #1044 from donaldsharp/combination
Coverity Cleanup of Stuff
Diffstat (limited to 'zebra/ioctl.c')
-rw-r--r--zebra/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/ioctl.c b/zebra/ioctl.c
index 7a3591728e..58118ce006 100644
--- a/zebra/ioctl.c
+++ b/zebra/ioctl.c
@@ -44,7 +44,7 @@ extern struct zebra_privs_t zserv_privs;
/* clear and set interface name string */
void ifreq_set_name(struct ifreq *ifreq, struct interface *ifp)
{
- strncpy(ifreq->ifr_name, ifp->name, IFNAMSIZ);
+ strlcpy(ifreq->ifr_name, ifp->name, sizeof(ifreq->ifr_name));
}
/* call ioctl system call */