]> git.puffer.fish Git - mirror/frr.git/commit
lib: bump filter CLI XPath buffers size
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 30 Apr 2020 21:21:12 +0000 (18:21 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Fri, 5 Jun 2020 17:36:53 +0000 (14:36 -0300)
commit1d7b156e7eea7dfeffd0176bf4dbd11755107e96
tree9b166e0e5bf579057579aedccf3a02eedc5f086c
parent4362a7681debd81c18c7f2921f76caaec41fcd4b
lib: bump filter CLI XPath buffers size

Bump the size of the buffers so the new compilers don't complain about
possible truncation:
```
lib/filter_cli.c: In function ‘ipv6_prefix_list_magic.isra.0’:
lib/filter_cli.c:1336:5: error: ‘%lld’ directive output may be truncated writing between 1 and 20 bytes into a region of size between 16 and 527 [-Werror=format-truncation=]
 1336 |     "%s/entry[sequence='%" PRId64 "']", xpath, sseq);
      |     ^~~~~~~~~~~~~~~~~~~~~~
lib/filter_cli.c:1336:25: note: format string is defined here
 1336 |     "%s/entry[sequence='%" PRId64 "']", xpath, sseq);
lib/filter_cli.c:1336:5: note: directive argument in the range [-92233720368547758039223372036854775807]
 1336 |     "%s/entry[sequence='%" PRId64 "']", xpath, sseq);
      |     ^~~~~~~~~~~~~~~~~~~~~~
```

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
lib/filter_cli.c