diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-08 01:51:13 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-08 01:51:13 +0200 |
commit | ff44f570144407f6bcc1ef205759f7c9fa57e077 (patch) | |
tree | cbb04ec29d3e93f4cae6af639500b49238e07cc2 /vtysh/vtysh_main.c | |
parent | vtysh, zebra: Fix function parameters (diff) | |
download | frr-ff44f570144407f6bcc1ef205759f7c9fa57e077.tar.xz frr-ff44f570144407f6bcc1ef205759f7c9fa57e077.zip |
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 'vtysh/vtysh_main.c')
-rw-r--r-- | vtysh/vtysh_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c index ff5e6bb78..ad7d072d3 100644 --- a/vtysh/vtysh_main.c +++ b/vtysh/vtysh_main.c @@ -52,8 +52,8 @@ static gid_t elevgid, realgid; #define FRR_CONFIG_NAME "frr.conf" /* Configuration file name and directory. */ -static char vtysh_config[MAXPATHLEN]; -char frr_config[MAXPATHLEN]; +static char vtysh_config[MAXPATHLEN * 3]; +char frr_config[MAXPATHLEN * 3]; char vtydir[MAXPATHLEN]; static char history_file[MAXPATHLEN]; |