In file included from /usr/include/string.h:494,
from src/array.h:25,
from src/bambi.h:25,
from src/spatial_filter.c:22:
In function ‘strncpy’,
inlined from ‘writeFilter’ at src/spatial_filter.c:1149:2,
inlined from ‘calculateFilter’ at src/spatial_filter.c:1571:5,
inlined from ‘spatial_filter’ at src/spatial_filter.c:1853:26,
inlined from ‘main_spatial_filter’ at src/spatial_filter.c:1876:21:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ specified bound 1024 equals destination size [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
this relates to:
Which is off by one because we forgot about the NULL byte at the end of the string