Replace malloc+strlcpy with strdup