https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101451
--- Comment #2 from Quentin Armitage <quentin at armitage dot org.uk> --- Created attachment 51297 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51297&action=edit ipvswrapper.i for strncpy truncated warning The following warning is generated: gcc -c -o ipvswrapper.o1 -O2 -Wstringop-truncation ipvswrapper.i In file included from /usr/include/string.h:519, from ../../lib/timer.h:28, from ../../keepalived/include/vrrp.h:40, from ../../keepalived/include/ipvswrapper.h:29, from ipvswrapper.c:34: In function ‘strncpy’, inlined from ‘ipvs_set_srule’ at ipvswrapper.c:494:7: /usr/include/bits/string_fortified.h:95:10: warning: ‘__builtin_strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~