Replaced use of strncpy() with strlcpy().