summaryrefslogtreecommitdiff
path: root/ospfd/ospf_te.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-10-24 19:36:30 -0400
committerGitHub <noreply@github.com>2017-10-24 19:36:30 -0400
commitb5b583aa8d9318a36a89129b08dee7f9fdedcf68 (patch)
tree55ddd237d50698bc0a53a42b41def519b337c935 /ospfd/ospf_te.c
parent47473bbbc7cc919eace33812419c0eb76e4cda68 (diff)
parentb11b57723b963fb5d0ab11748b7957f0b7fa5d37 (diff)
Merge pull request #1357 from opensourcerouting/coverity_fixes
Coverity fixes
Diffstat (limited to 'ospfd/ospf_te.c')
-rw-r--r--ospfd/ospf_te.c2
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,