resolver.c: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1021
549cf0f3 on Solaris 11.4 with GCC 11.2.0 produces the following warning:
resolver.c: In function 'dns_resolver_dumpquota':
resolver.c:11537:39: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1021 [-Wformat-truncation=]
11537 | "\n- %s: %u active (allowed %u spilled %u)",
| ^~
11538 | nb, fc->count, fc->allowed, fc->dropped);
| ~~
resolver.c:11536:25: note: 'snprintf' output between 36 and 1086 bytes into a destination of size 1024
11536 | snprintf(text, sizeof(text),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
11537 | "\n- %s: %u active (allowed %u spilled %u)",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11538 | nb, fc->count, fc->allowed, fc->dropped);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~