fix error message SHA truncation in git_odb__error_notfound()

This commit is contained in:
Sim Domingo 2016-06-09 22:50:53 +08:00 committed by Carlos Martín Nieto
parent 4c06f3e7dc
commit 286e7dbd4b

View File

@ -1229,7 +1229,7 @@ int git_odb__error_notfound(
{
if (oid != NULL) {
char oid_str[GIT_OID_HEXSZ + 1];
git_oid_tostr(oid_str, oid_len, oid);
git_oid_tostr(oid_str, oid_len+1, oid);
giterr_set(GITERR_ODB, "Object not found - %s (%.*s)",
message, oid_len, oid_str);
} else