summaryrefslogtreecommitdiff
path: root/tests/pack
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-09-16 11:49:25 +0200
committerCiro Santilli <ciro.santilli@gmail.com>2014-09-16 13:07:04 +0200
commit3b2cb2c91ee77e5e45957e8355025e3e742c07bd (patch)
tree01213a03d821babf6103754afe64fed6e9849a6f /tests/pack
parent3a495c19bd280f5455047a9ac0e936f2c2f2f9a9 (diff)
downloadlibgit2-3b2cb2c91ee77e5e45957e8355025e3e742c07bd.tar.gz
Factor 40 and 41 constants from source.
Diffstat (limited to 'tests/pack')
-rw-r--r--tests/pack/packbuilder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pack/packbuilder.c b/tests/pack/packbuilder.c
index 1059424ed..12273ec85 100644
--- a/tests/pack/packbuilder.c
+++ b/tests/pack/packbuilder.c
@@ -93,7 +93,7 @@ void test_pack_packbuilder__create_pack(void)
git_buf buf = GIT_BUF_INIT, path = GIT_BUF_INIT;
git_hash_ctx ctx;
git_oid hash;
- char hex[41]; hex[40] = '\0';
+ char hex[GIT_OID_HEXSZ+1]; hex[GIT_OID_HEXSZ] = '\0';
seed_packbuilder();
@@ -135,7 +135,7 @@ void test_pack_packbuilder__create_pack(void)
void test_pack_packbuilder__get_hash(void)
{
- char hex[41]; hex[40] = '\0';
+ char hex[GIT_OID_HEXSZ+1]; hex[GIT_OID_HEXSZ] = '\0';
seed_packbuilder();