summaryrefslogtreecommitdiff
path: root/lib/libfrr.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-06-07 19:51:13 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-06-07 19:51:13 -0400
commitff44f570144407f6bcc1ef205759f7c9fa57e077 (patch)
treecbb04ec29d3e93f4cae6af639500b49238e07cc2 /lib/libfrr.c
parentb1599bb6f4b04ef8d55a0df1d8cee6a978465331 (diff)
bgpd, lib, ospf6d, vtysh: fix possible snprintf possible truncation
With a new version of clang 6.0, the compiler is detecting more issues where we may be possibly be truncating the output string. Fix by increasing the size of the output string to make the compiler happy. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/libfrr.c')
-rw-r--r--lib/libfrr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libfrr.c b/lib/libfrr.c
index 9931183634..88203fbeb6 100644
--- a/lib/libfrr.c
+++ b/lib/libfrr.c
@@ -47,9 +47,9 @@ const char frr_moduledir[] = MODULE_PATH;
char frr_protoname[256] = "NONE";
char frr_protonameinst[256] = "NONE";
-char config_default[256];
+char config_default[512];
char frr_zclientpath[256];
-static char pidfile_default[256];
+static char pidfile_default[512];
static char vtypath_default[256];
bool debug_memstats_at_exit = 0;