Use safe_strncat() to prevent overrunning the destination buffer.