diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-07 19:51:13 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-07 19:51:13 -0400 | 
| commit | ff44f570144407f6bcc1ef205759f7c9fa57e077 (patch) | |
| tree | cbb04ec29d3e93f4cae6af639500b49238e07cc2 /lib/module.c | |
| parent | b1599bb6f4b04ef8d55a0df1d8cee6a978465331 (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/module.c')
| -rw-r--r-- | lib/module.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/module.c b/lib/module.c index 3f13307d82..0c85364003 100644 --- a/lib/module.c +++ b/lib/module.c @@ -75,7 +75,7 @@ struct frrmod_runtime *frrmod_load(const char *spec, const char *dir, char *err,  				   size_t err_len)  {  	void *handle = NULL; -	char name[PATH_MAX], fullpath[PATH_MAX], *args; +	char name[PATH_MAX], fullpath[PATH_MAX * 2], *args;  	struct frrmod_runtime *rtinfo, **rtinfop;  	const struct frrmod_info *info;  | 
