strncpy() bound depends on the length of the source argument
GCC 8.4.0 complains about "weird" uses of strncpy() introduced with !46 (merged). Due to -Werror, this fails the build.
egcc -o build/opt/src/hammer.os -c -fPIC -std=c99 -Wall -Wextra -Werror -Wno-unused-parameter -Wno-attributes -Wno-unused-variable -O3 -D_POSIX_C_SOURCE=200809L build/opt/src/hammer.c
In function 'h_get_string_for_backend_with_params__m',
inlined from 'h_get_name_for_backend_with_params__m' at build/opt/src/hammer.c:273:10:
build/opt/src/hammer.c:261:7: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=]
strncpy(text, generic_text, strlen(generic_text) + 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/opt/src/hammer.c: In function 'h_get_name_for_backend_with_params__m':
build/opt/src/hammer.c:261:35: note: length computed here
strncpy(text, generic_text, strlen(generic_text) + 1);
^~~~~~~~~~~~~~~~~~~~
In function 'h_get_string_for_backend_with_params__m',
inlined from 'h_get_descriptive_text_for_backend_with_params__m' at build/opt/src/hammer.c:286:10:
build/opt/src/hammer.c:261:7: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=]
strncpy(text, generic_text, strlen(generic_text) + 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/opt/src/hammer.c: In function 'h_get_descriptive_text_for_backend_with_params__m':
build/opt/src/hammer.c:261:35: note: length computed here
strncpy(text, generic_text, strlen(generic_text) + 1);
^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
scons: *** [build/opt/src/hammer.os] Error 1
scons: building terminated because of errors.