summaryrefslogtreecommitdiff
path: root/tests/tar_xattr_bsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tar_xattr_bsd.c')
-rw-r--r--tests/tar_xattr_bsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tar_xattr_bsd.c b/tests/tar_xattr_bsd.c
index dcaba1e..0741511 100644
--- a/tests/tar_xattr_bsd.c
+++ b/tests/tar_xattr_bsd.c
@@ -54,7 +54,8 @@ int main(void)
assert(hdr.xattr != NULL);
assert(strcmp(hdr.xattr->key, "user.mime_type") == 0);
- assert(strcmp(hdr.xattr->value, "text/plain") == 0);
+ assert(strcmp((const char *)hdr.xattr->value, "text/plain") == 0);
+ assert(hdr.xattr->value_len == 10);
assert(hdr.xattr->next == NULL);
clear_header(&hdr);