libvtreefs: resolve Coverity warnings

This commit is contained in:
David van Moolenbroek
2012-07-30 14:00:22 +00:00
parent 90e2b939ab
commit 5909c8ba20
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ struct inode *add_inode(struct inode *parent, char *name,
newnode->i_stat = *stat;
newnode->i_indexed = nr_indexed_entries;
newnode->i_cbdata = cbdata;
strcpy(newnode->i_name, name);
strlcpy(newnode->i_name, name, sizeof(newnode->i_name));
/* Add the inode to the list of children inodes of the parent. */
TAILQ_INSERT_HEAD(&parent->i_children, newnode, i_siblings);