Skip to content

Commit

Permalink
xattr_iterator: use _prefix_size to calculate prefix length.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gottox committed Dec 5, 2023
1 parent b075ad2 commit d425db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsqsh/src/xattr/xattr_iterator.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ sqsh_xattr_iterator_fullname_cmp(
const struct SqshXattrIterator *iterator, const char *name) {
int rv = 0;
const char *prefix = sqsh_xattr_iterator_prefix(iterator);
int prefix_len = strlen(prefix);
const size_t prefix_len = sqsh_xattr_iterator_prefix_size(iterator);
rv = strncmp(name, prefix, prefix_len);
if (rv != 0) {
return rv;
Expand Down

0 comments on commit d425db3

Please sign in to comment.