diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-13 15:47:35 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-13 15:49:00 +0100 |
commit | 262fc48eb9e246ddb7315f5a14e7f6f58ca987c1 (patch) | |
tree | dc3e342ead34d15db452804d445d6621afe64a5e /tar/sqfs2tar.c | |
parent | 7ab411dbd2cb066652f5f51a1bc6cc793b7cafad (diff) |
Better support for reading/writing non-ASCII xattr values from/to tar
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tar/sqfs2tar.c')
-rw-r--r-- | tar/sqfs2tar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tar/sqfs2tar.c b/tar/sqfs2tar.c index 6767b95..58fb611 100644 --- a/tar/sqfs2tar.c +++ b/tar/sqfs2tar.c @@ -267,9 +267,10 @@ static int get_xattrs(const char *name, const sqfs_inode_generic_t *inode, ent->key = ent->data; strcpy(ent->key, (const char *)key->key); - ent->value = ent->key + strlen(ent->key) + 1; + ent->value = (sqfs_u8 *)ent->key + strlen(ent->key) + 1; memcpy(ent->value, value->value, value->size + 1); + ent->value_len = value->size; ent->next = list; list = ent; |