aboutsummaryrefslogtreecommitdiff
path: root/bin/gensquashfs/mkfs.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-11-19 20:14:14 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-11-21 15:25:53 +0100
commit40ccc8ce7c2008892d6ac1c12816438fd71b90cb (patch)
tree462dd17bc59abefa6cf9547ccfa8f963426f8351 /bin/gensquashfs/mkfs.h
parent7bf4cc03d379bdd71c61982abde2355c578e4ef2 (diff)
filemap xattr: use sqfs_u8 data type for xattr value blobs
The xattr values are not strings, they are arbitrary byte blobs. To be on the safe side tough, we should still allocate the space for the extra null byte and propperly initialize the buffer. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/gensquashfs/mkfs.h')
-rw-r--r--bin/gensquashfs/mkfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gensquashfs/mkfs.h b/bin/gensquashfs/mkfs.h
index 960a31c..33ba707 100644
--- a/bin/gensquashfs/mkfs.h
+++ b/bin/gensquashfs/mkfs.h
@@ -64,7 +64,7 @@ typedef struct {
struct XattrMapEntry {
char *key;
- char *value;
+ sqfs_u8 *value;
size_t value_len;
struct XattrMapEntry *next;
};