diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2019-05-29 23:55:17 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-29 23:55:17 -0300 |
| commit | 0ad79902fc5f4219feef1fec2ee7b5dfd3f34f98 (patch) | |
| tree | 603415acae0525e1e09f1a0a2a0c362766783ab3 /zebra/ioctl_solaris.c | |
| parent | fc37d4fe0d22aafcaac0c71cc41e426ef7b8a71d (diff) | |
| parent | 67c726a10d90b9edc02e99e5a9064d14f9920309 (diff) | |
Merge pull request #4267 from qlyoung/fix-misc-compile-warnings
Fix misc compile warnings, remove strcpy & strcat
Diffstat (limited to 'zebra/ioctl_solaris.c')
| -rw-r--r-- | zebra/ioctl_solaris.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/ioctl_solaris.c b/zebra/ioctl_solaris.c index ccfa7a4a4c..1f96fa23ea 100644 --- a/zebra/ioctl_solaris.c +++ b/zebra/ioctl_solaris.c @@ -286,7 +286,7 @@ static int if_unset_prefix_ctx(const struct zebra_dplane_ctx *ctx) p = (struct prefix_ipv4 *)dplane_ctx_get_intf_addr(ctx); - strncpy(ifreq.ifr_name, dplane_ctx_get_ifname(ctx), + strlcpy(ifreq.ifr_name, dplane_ctx_get_ifname(ctx), sizeof(ifreq.ifr_name)); memset(&addr, 0, sizeof(struct sockaddr_in)); |
