]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: fix helpstring truncation 4267/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 28 May 2019 20:25:45 +0000 (20:25 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 29 May 2019 18:03:26 +0000 (18:03 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/libfrr.c

index 26bdcc1a3632ab09efbc033acab79cbdd93c028b..cd5a164c53ca275f4e232fba4b9c16557fefac93 100644 (file)
@@ -81,7 +81,7 @@ static void opt_extend(const struct optspec *os)
        const struct option *lo;
 
        strlcat(comb_optstr, os->optstr, sizeof(comb_optstr));
-       strlcat(comb_helpstr, os->helpstr, 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));
 }