Pattern: Possibly improper use of strncpy()
Issue: -
If the source string’s size fits or exceeds the given size, strncpy()
does not add a zero at the end of the buffer. This causes bugs later in the code if the code assumes buffer is null-terminated.