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 Edward Thomson
parent f0ee795ccb
commit 2076d3291c

View File

@ -1362,7 +1362,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