Again, use strlcpy(), rather than wasting time on filling node with '\0' bytes after the part you copied into.