diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2020-08-24 18:45:53 +0300 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2020-08-24 18:45:53 +0300 | 
| commit | e6426ace1edadd3c27ac612815ebc994ea54ba39 (patch) | |
| tree | 06dc09b10c360b4c77c7a815f087dbb2934b3827 /bfdd/bfdd_cli.c | |
| parent | 310451ba9712f2d4483bd976a968cd4b6d19477f (diff) | |
bfdd: fix parameter length
There is no space reserved for "[source-addr='']".
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'bfdd/bfdd_cli.c')
| -rw-r--r-- | bfdd/bfdd_cli.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/bfdd/bfdd_cli.c b/bfdd/bfdd_cli.c index 058ce7d1f2..d115684b1c 100644 --- a/bfdd/bfdd_cli.c +++ b/bfdd/bfdd_cli.c @@ -109,7 +109,7 @@ DEFPY_YANG_NOSH(  	VRF_NAME_STR)  {  	int ret, slen; -	char source_str[INET6_ADDRSTRLEN]; +	char source_str[INET6_ADDRSTRLEN + 32];  	char xpath[XPATH_MAXLEN], xpath_srcaddr[XPATH_MAXLEN + 32];  	if (multihop) @@ -168,7 +168,7 @@ DEFPY_YANG(  {  	int slen;  	char xpath[XPATH_MAXLEN]; -	char source_str[INET6_ADDRSTRLEN]; +	char source_str[INET6_ADDRSTRLEN + 32];  	if (multihop)  		snprintf(source_str, sizeof(source_str), "[source-addr='%s']",  | 
