diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2019-05-29 23:55:17 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-29 23:55:17 -0300 |
| commit | 0ad79902fc5f4219feef1fec2ee7b5dfd3f34f98 (patch) | |
| tree | 603415acae0525e1e09f1a0a2a0c362766783ab3 /lib/libfrr.c | |
| parent | fc37d4fe0d22aafcaac0c71cc41e426ef7b8a71d (diff) | |
| parent | 67c726a10d90b9edc02e99e5a9064d14f9920309 (diff) | |
Merge pull request #4267 from qlyoung/fix-misc-compile-warnings
Fix misc compile warnings, remove strcpy & strcat
Diffstat (limited to 'lib/libfrr.c')
| -rw-r--r-- | lib/libfrr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libfrr.c b/lib/libfrr.c index 5970e70a6b..cd5a164c53 100644 --- a/lib/libfrr.c +++ b/lib/libfrr.c @@ -80,8 +80,8 @@ static void opt_extend(const struct optspec *os) { const struct option *lo; - strcat(comb_optstr, os->optstr); - strcat(comb_helpstr, os->helpstr); + strlcat(comb_optstr, os->optstr, sizeof(comb_optstr)); + strlcat(comb_helpstr, os->helpstr, sizeof(comb_helpstr)); for (lo = os->longopts; lo->name; lo++) memcpy(comb_next_lo++, lo, sizeof(*lo)); } |
