Advanced #Programming in the #UNIX EnvironmentCoding mistakes using strncat(3) are common - better: use strlcat(3).https://www.netmeister.org/blog/strlcat.html#apue