mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 18:52:04 +00:00
pimd: don't use strcpy
>:( Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
4110aa2cb3
commit
96e43299b4
@ -583,7 +583,9 @@ static void pim_mlag_process_mlagd_state_change(struct mlag_status msg)
|
||||
router->mlag_role = msg.my_role;
|
||||
}
|
||||
|
||||
strcpy(router->peerlink_rif, msg.peerlink_rif);
|
||||
strlcpy(router->peerlink_rif, msg.peerlink_rif,
|
||||
sizeof(router->peerlink_rif));
|
||||
|
||||
/* XXX - handle the case where we may rx the interface name from the
|
||||
* MLAG daemon before we get the interface from zebra.
|
||||
*/
|
||||
|
@ -1261,11 +1261,11 @@ void pim_rp_show_information(struct pim_instance *pim, struct vty *vty, bool uj)
|
||||
char buf[48];
|
||||
|
||||
if (rp_info->rp_src == RP_SRC_STATIC)
|
||||
strcpy(source, "Static");
|
||||
strlcpy(source, "Static", sizeof(source));
|
||||
else if (rp_info->rp_src == RP_SRC_BSR)
|
||||
strcpy(source, "BSR");
|
||||
strlcpy(source, "BSR", sizeof(source));
|
||||
else
|
||||
strcpy(source, "None");
|
||||
strlcpy(source, "None", sizeof(source));
|
||||
if (uj) {
|
||||
/*
|
||||
* If we have moved on to a new RP then add the
|
||||
|
Loading…
Reference in New Issue
Block a user