summaryrefslogtreecommitdiffstats
path: root/zebra/ioctl_solaris.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-05-08 20:33:53 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-29 20:03:26 +0200
commitfcb072cdbfa87ffff0a5c94c29217a3235bbe8f3 (patch)
tree0d3c72feeeda933bddb93525dc09c82c53ca98ab /zebra/ioctl_solaris.c
parentzebra: strcat -> strlcat (diff)
downloadfrr-fcb072cdbfa87ffff0a5c94c29217a3235bbe8f3.tar.xz
frr-fcb072cdbfa87ffff0a5c94c29217a3235bbe8f3.zip
lib, zebra: remove uses of strncpy
This removes the last removable uses of strncpy in FRR. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--zebra/ioctl_solaris.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/ioctl_solaris.c b/zebra/ioctl_solaris.c
index ccfa7a4a4..1f96fa23e 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));