summaryrefslogtreecommitdiff
path: root/zebra/zebra_mpls.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-05-29 23:55:17 -0300
committerGitHub <noreply@github.com>2019-05-29 23:55:17 -0300
commit0ad79902fc5f4219feef1fec2ee7b5dfd3f34f98 (patch)
tree603415acae0525e1e09f1a0a2a0c362766783ab3 /zebra/zebra_mpls.c
parentfc37d4fe0d22aafcaac0c71cc41e426ef7b8a71d (diff)
parent67c726a10d90b9edc02e99e5a9064d14f9920309 (diff)
Merge pull request #4267 from qlyoung/fix-misc-compile-warnings
Fix misc compile warnings, remove strcpy & strcat
Diffstat (limited to 'zebra/zebra_mpls.c')
-rw-r--r--zebra/zebra_mpls.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zebra_mpls.c b/zebra/zebra_mpls.c
index 48366417dd..5214f1f22d 100644
--- a/zebra/zebra_mpls.c
+++ b/zebra/zebra_mpls.c
@@ -1693,8 +1693,9 @@ static char *snhlfe2str(zebra_snhlfe_t *snhlfe, char *buf, int size)
case NEXTHOP_TYPE_IPV6_IFINDEX:
inet_ntop(AF_INET6, &snhlfe->gate.ipv6, buf, size);
if (snhlfe->ifindex)
- strcat(buf,
- ifindex2ifname(snhlfe->ifindex, VRF_DEFAULT));
+ strlcat(buf,
+ ifindex2ifname(snhlfe->ifindex, VRF_DEFAULT),
+ size);
break;
default:
break;