vendor/libgit2/src/odb_pack.c in rugged-0.26.6 vs vendor/libgit2/src/odb_pack.c in rugged-0.26.7

- old
+ new

@@ -207,10 +207,10 @@ cmp_len -= strlen(".idx"); for (i = 0; i < backend->packs.length; ++i) { struct git_pack_file *p = git_vector_get(&backend->packs, i); - if (memcmp(p->pack_name, path_str, cmp_len) == 0) + if (strncmp(p->pack_name, path_str, cmp_len) == 0) return 0; } error = git_mwindow_get_pack(&pack, path->ptr);