I get this warning with gcc -std=gnu17 -Wall -Werror -Wshadow -O3 test.c:
gcc -std=gnu17 -Wall -Werror -Wshadow -O3 test.c
error: ‘strncat’ output may be truncated copying between 0 and 77 bytes