diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-08 20:33:53 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-29 20:03:26 +0200 |
commit | fcb072cdbfa87ffff0a5c94c29217a3235bbe8f3 (patch) | |
tree | 0d3c72feeeda933bddb93525dc09c82c53ca98ab /zebra/ioctl_solaris.c | |
parent | zebra: strcat -> strlcat (diff) | |
download | frr-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.c | 2 |
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)); |