diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2017-08-24 21:43:29 -0300 | 
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2017-08-24 21:49:39 -0300 | 
| commit | 0af35d90a125952d04aa892522b6be324f2dfbf7 (patch) | |
| tree | 30a64161c4e98d6695d8c3104d4dba1c41d8e767 /zebra/ioctl.c | |
| parent | e691f179b6c6fc26536e68958f19ff6983a03274 (diff) | |
*: fix assorted issues detected by Coverity Scan
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
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 835f1f4934..4404bb4483 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 */  | 
