- Use strlcpy() and strlcat() instead of strcpy() and strcat().