...
These functions truncate strings that exceed the specified limits. Additionally, some functions such as strncpy()
do not guarantee that the resulting string is null-terminated. (See rule STR32-C. Null-terminate byte strings as required.)
Unintentional truncation results in a loss of data and, in some cases, leads to software vulnerabilities.
...