summaryrefslogtreecommitdiff
path: root/src/odb_loose.c
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 /src/odb_loose.c
parent3a495c19bd280f5455047a9ac0e936f2c2f2f9a9 (diff)
downloadlibgit2-3b2cb2c91ee77e5e45957e8355025e3e742c07bd.tar.gz
Factor 40 and 41 constants from source.
Diffstat (limited to 'src/odb_loose.c')
-rw-r--r--src/odb_loose.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb_loose.c b/src/odb_loose.c
index b2e8bed4d..ef6de41a9 100644
--- a/src/odb_loose.c
+++ b/src/odb_loose.c
@@ -714,7 +714,7 @@ struct foreach_state {
GIT_INLINE(int) filename_to_oid(git_oid *oid, const char *ptr)
{
int v, i = 0;
- if (strlen(ptr) != 41)
+ if (strlen(ptr) != GIT_OID_HEXSZ+1)
return -1;
if (ptr[2] != '/') {