diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-06 21:30:10 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-29 18:03:26 +0000 |
| commit | 2dfe5a077573b76ed7f03d5d91c78682854c976c (patch) | |
| tree | a71238dc77260f1416a2746f857b1e349de8665a | |
| parent | 2e600d75293e34196e586a9ff96be819dd5ba1f4 (diff) | |
staticd: strcpy -> strlcpy
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
| -rw-r--r-- | staticd/static_routes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/staticd/static_routes.c b/staticd/static_routes.c index cde31df14f..5f9ecad694 100644 --- a/staticd/static_routes.c +++ b/staticd/static_routes.c @@ -127,7 +127,7 @@ int static_add_route(afi_t afi, safi_t safi, uint8_t type, struct prefix *p, si->tag = tag; si->vrf_id = svrf->vrf->vrf_id; si->nh_vrf_id = nh_svrf->vrf->vrf_id; - strcpy(si->nh_vrfname, nh_svrf->vrf->name); + strlcpy(si->nh_vrfname, nh_svrf->vrf->name, sizeof(si->nh_vrfname)); si->table_id = table_id; si->onlink = onlink; |
