Closed temeo closed 3 years ago
Compilation fails with GCC 9 for -Werror=stringop-truncation in glb_dst.c. This is because strncpy() is used in a way which does not copy terminating NUL into dst buffer. To avoid the error, replace strncpy() with memcpy().
For discussion about strncpy(), see https://developers.redhat.com/blog/2018/05/24/detecting-string-truncation-with-gcc-8/.
strncpy()
Compilation fails with GCC 9 for -Werror=stringop-truncation in glb_dst.c. This is because strncpy() is used in a way which does not copy terminating NUL into dst buffer. To avoid the error, replace strncpy() with memcpy().