diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-06 21:05:20 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-29 18:02:57 +0000 |
| commit | 9f73d2c9b60e551be0229790aeb4e4224d9b2c1a (patch) | |
| tree | fa02eb47ef1d9a7ac8d29b39a2f1faa83515bd55 /lib/libfrr.c | |
| parent | 552d6491f08de30b97af876ab923aea10f1b0a1c (diff) | |
lib: remove some strcpy, strcat
Replace with strlcpy, strlcat
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
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..26bdcc1a36 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_optstr)); for (lo = os->longopts; lo->name; lo++) memcpy(comb_next_lo++, lo, sizeof(*lo)); } |
