mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 00:56:19 +00:00
zebra: strcat -> strlcat
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
2dfe5a0775
commit
eab4a5c2d0
@ -813,7 +813,7 @@ static int netlink_route_change_read_multicast(struct nlmsghdr *h,
|
|||||||
|
|
||||||
sprintf(temp, "%s(%d) ", ifp ? ifp->name : "Unknown",
|
sprintf(temp, "%s(%d) ", ifp ? ifp->name : "Unknown",
|
||||||
oif[count]);
|
oif[count]);
|
||||||
strcat(oif_list, temp);
|
strlcat(oif_list, temp, sizeof(oif_list));
|
||||||
}
|
}
|
||||||
struct zebra_vrf *zvrf = zebra_vrf_lookup_by_id(vrf);
|
struct zebra_vrf *zvrf = zebra_vrf_lookup_by_id(vrf);
|
||||||
ifp = if_lookup_by_index(iif, vrf);
|
ifp = if_lookup_by_index(iif, vrf);
|
||||||
|
@ -1693,8 +1693,9 @@ static char *snhlfe2str(zebra_snhlfe_t *snhlfe, char *buf, int size)
|
|||||||
case NEXTHOP_TYPE_IPV6_IFINDEX:
|
case NEXTHOP_TYPE_IPV6_IFINDEX:
|
||||||
inet_ntop(AF_INET6, &snhlfe->gate.ipv6, buf, size);
|
inet_ntop(AF_INET6, &snhlfe->gate.ipv6, buf, size);
|
||||||
if (snhlfe->ifindex)
|
if (snhlfe->ifindex)
|
||||||
strcat(buf,
|
strlcat(buf,
|
||||||
ifindex2ifname(snhlfe->ifindex, VRF_DEFAULT));
|
ifindex2ifname(snhlfe->ifindex, VRF_DEFAULT),
|
||||||
|
size);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -129,7 +129,7 @@ _rnode_zlog(const char *_func, vrf_id_t vrf_id, struct route_node *rn,
|
|||||||
srcdest_rnode2str(rn, buf, sizeof(buf));
|
srcdest_rnode2str(rn, buf, sizeof(buf));
|
||||||
|
|
||||||
if (info->safi == SAFI_MULTICAST)
|
if (info->safi == SAFI_MULTICAST)
|
||||||
strcat(buf, " (MRIB)");
|
strlcat(buf, " (MRIB)", sizeof(buf));
|
||||||
} else {
|
} else {
|
||||||
snprintf(buf, sizeof(buf), "{(route_node *) NULL}");
|
snprintf(buf, sizeof(buf), "{(route_node *) NULL}");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user