Incr 'status' size to get rid of
programs/pluto/adns.c: In function ‘master’:
programs/pluto/adns.c:332:50: warning: ‘%s’ directive output may be truncated writing up to 1026 bytes into a region of size 1017 [-Wformat-truncation=]
snprintf(status, sizeof(status), "query: %s", q.name_buf);
^~ ~~
In file included from /usr/include/stdio.h:873,
from programs/pluto/adns.c:45:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘builtin___snprintf_chk’ output between 8 and 1034 bytes into a destination of size 1024
return builtin_snprintf_chk (s, n, USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~
bos (s), fmt, va_arg_pack ());
Incr 'status' size to get rid of programs/pluto/adns.c: In function ‘master’: programs/pluto/adns.c:332:50: warning: ‘%s’ directive output may be truncated writing up to 1026 bytes into a region of size 1017 [-Wformat-truncation=] snprintf(status, sizeof(status), "query: %s", q.name_buf); ^~
~~In file included from /usr/include/stdio.h:873, from programs/pluto/adns.c:45: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘builtin___snprintf_chk’ output between 8 and 1034 bytes into a destination of size 1024 return builtin_snprintf_chk (s, n, USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~ bos (s), fmt, va_arg_pack ());