summaryrefslogtreecommitdiff
path: root/builtin/fast-export.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-02-26 18:10:24 -0800
committerJunio C Hamano <gitster@pobox.com>2024-02-26 18:10:24 -0800
commit274400998b0a2da64d20e9fa95b288bf1403459c (patch)
tree520059d779f2d3e93ab4ba91e4bc9e0bb8d37313 /builtin/fast-export.c
parentcf47fb7ec7e183a1a1e521a540862fba3c2a89eb (diff)
parentf0e578c69cd91a554179c09dab6989f6eb0e2910 (diff)
Merge branch 'rs/use-xstrncmpz'
Code clean-up. * rs/use-xstrncmpz: use xstrncmpz()
Diffstat (limited to 'builtin/fast-export.c')
-rw-r--r--builtin/fast-export.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/fast-export.c b/builtin/fast-export.c
index f18f0809f9..4693d18cc9 100644
--- a/builtin/fast-export.c
+++ b/builtin/fast-export.c
@@ -136,8 +136,7 @@ static int anonymized_entry_cmp(const void *cmp_data UNUSED,
a = container_of(eptr, const struct anonymized_entry, hash);
if (keydata) {
const struct anonymized_entry_key *key = keydata;
- int equal = !strncmp(a->orig, key->orig, key->orig_len) &&
- !a->orig[key->orig_len];
+ int equal = !xstrncmpz(a->orig, key->orig, key->orig_len);
return !equal;
}