-
Philippe Gerum authored
GCC 8.x introduced -Wstringop-truncation to help detecting likely unwanted outcomes of strncpy(dst, src, n), such as omitting the NUL character into the destination buffer whenever n < sizeof(src). Fix unsafe strncpy() calls when we do expect a null-terminated destination buffer. Signed-off-by: Philippe Gerum <rpm@xenomai.org>
cdc63fe2