diff options
author | David Lamparter <equinox@diac24.net> | 2018-08-18 04:33:38 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-08-21 21:05:09 +0200 |
commit | a2dc7057e0bd3a5f5c28de9896bf905e6dd5eb4b (patch) | |
tree | 02d1dbdd3c616f371b7e42a0098d16981f843e05 /bgpd/bgp_flowspec.c | |
parent | build: wrap "fallthrough" attr (diff) | |
download | frr-a2dc7057e0bd3a5f5c28de9896bf905e6dd5eb4b.tar.xz frr-a2dc7057e0bd3a5f5c28de9896bf905e6dd5eb4b.zip |
*: fix gcc-8 format-overflow warnings
e.g.
pimd/pim_oil.c: In function ‘pim_channel_oil_dump’:
pimd/pim_oil.c:51:19: error: ‘%d’ directive writing between 1 and 11 bytes into a region of size 10 [-Werror=format-overflow=]
Build on gcc-8.2.0 is warning-free after this patch.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'bgpd/bgp_flowspec.c')
-rw-r--r-- | bgpd/bgp_flowspec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_flowspec.c b/bgpd/bgp_flowspec.c index 6695596c6..e29508bf3 100644 --- a/bgpd/bgp_flowspec.c +++ b/bgpd/bgp_flowspec.c @@ -148,7 +148,7 @@ int bgp_nlri_parse_flowspec(struct peer *peer, struct attr *attr, if (BGP_DEBUG(flowspec, FLOWSPEC)) { char return_string[BGP_FLOWSPEC_NLRI_STRING_MAX]; - char local_string[BGP_FLOWSPEC_NLRI_STRING_MAX * 2]; + char local_string[BGP_FLOWSPEC_NLRI_STRING_MAX*2+16]; char ec_string[BGP_FLOWSPEC_NLRI_STRING_MAX]; char *s = NULL; |