aboutsummaryrefslogtreecommitdiff
path: root/lib/common
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common')
-rw-r--r--lib/common/serialize_fstree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common/serialize_fstree.c b/lib/common/serialize_fstree.c
index 0f34d7d..a64d90f 100644
--- a/lib/common/serialize_fstree.c
+++ b/lib/common/serialize_fstree.c
@@ -17,7 +17,7 @@ static sqfs_inode_generic_t *tree_node_to_inode(tree_node_t *node)
size_t extra = 0;
if (S_ISLNK(node->mode))
- extra = strlen(node->data.slink_target);
+ extra = strlen(node->data.target);
inode = calloc(1, sizeof(*inode) + extra);
if (inode == NULL) {
@@ -39,7 +39,7 @@ static sqfs_inode_generic_t *tree_node_to_inode(tree_node_t *node)
inode->data.slink.nlink = 1;
inode->data.slink.target_size = extra;
inode->slink_target = (char *)inode->extra;
- memcpy(inode->extra, node->data.slink_target, extra);
+ memcpy(inode->extra, node->data.target, extra);
break;
case S_IFBLK:
inode->base.type = SQFS_INODE_BDEV;