diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-10-24 19:36:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-24 19:36:30 -0400 |
| commit | b5b583aa8d9318a36a89129b08dee7f9fdedcf68 (patch) | |
| tree | 55ddd237d50698bc0a53a42b41def519b337c935 /ospfd/ospf_te.c | |
| parent | 47473bbbc7cc919eace33812419c0eb76e4cda68 (diff) | |
| parent | b11b57723b963fb5d0ab11748b7957f0b7fa5d37 (diff) | |
Merge pull request #1357 from opensourcerouting/coverity_fixes
Coverity fixes
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 b13e833afd..253b272df6 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, |
