diff options
author | Jafar Al-Gharaibeh <Jafaral@users.noreply.github.com> | 2017-08-31 17:25:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-31 17:25:55 +0200 |
commit | 959768e8d049303c434bcb67e64d19bae65d073a (patch) | |
tree | 0387049fc8de44d6a22fafe639f58f6cfb9113f7 /zebra/ioctl.c | |
parent | Merge pull request #1077 from donaldsharp/ws (diff) | |
parent | zebra: Coverity Code Cleanup (diff) | |
download | frr-959768e8d049303c434bcb67e64d19bae65d073a.tar.xz frr-959768e8d049303c434bcb67e64d19bae65d073a.zip |
Merge pull request #1044 from donaldsharp/combination
Coverity Cleanup of Stuff
Diffstat (limited to 'zebra/ioctl.c')
-rw-r--r-- | zebra/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/ioctl.c b/zebra/ioctl.c index 7a3591728..58118ce00 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 */ |