diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-04-17 19:56:49 -0400 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-04-17 19:59:02 -0400 |
| commit | 96e43299b42dc60d06ceef8a5c9a34a949e32a26 (patch) | |
| tree | 94ea2bc6f015e5b36900cb3f15682c53b0adbc5b /pimd/pim_mlag.c | |
| parent | 4110aa2cb342fb0f025746c4b7df7707f69334c5 (diff) | |
pimd: don't use strcpy
>:(
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_mlag.c')
| -rw-r--r-- | pimd/pim_mlag.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pimd/pim_mlag.c b/pimd/pim_mlag.c index 47735475f3..78be914cee 100644 --- a/pimd/pim_mlag.c +++ b/pimd/pim_mlag.c @@ -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. */ |
