diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-10-22 20:36:13 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-10-24 23:30:30 +0200 |
commit | a1d6bbb1f30d638a039db2b5e5ef3ea542590b62 (patch) | |
tree | ecd986cf862feeb71a2e6597e0a065d490b7f6b1 /ospfd/ospf_te.c | |
parent | *: add missing \n in some help strings (diff) | |
download | frr-a1d6bbb1f30d638a039db2b5e5ef3ea542590b62.tar.xz frr-a1d6bbb1f30d638a039db2b5e5ef3ea542590b62.zip |
ospfd: fix coverity warnings - security best practices violations
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_te.c')
-rw-r--r-- | ospfd/ospf_te.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_te.c b/ospfd/ospf_te.c index b13e833af..253b272df 100644 --- a/ospfd/ospf_te.c +++ b/ospfd/ospf_te.c @@ -1252,7 +1252,7 @@ static int ospf_mpls_te_lsa_originate1(struct ospf_area *area, if (IS_DEBUG_OSPF(lsa, LSA_GENERATE)) { char area_id[INET_ADDRSTRLEN]; - strcpy(area_id, inet_ntoa(area->area_id)); + strlcpy(area_id, inet_ntoa(area->area_id), sizeof(area_id)); zlog_debug( "LSA[Type%d:%s]: Originate Opaque-LSA/MPLS-TE: Area(%s), Link(%s)", new->data->type, inet_ntoa(new->data->id), area_id, |