We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0ee795 commit 2076d32Copy full SHA for 2076d32
src/odb.c
@@ -1362,7 +1362,7 @@ int git_odb__error_notfound(
1362
{
1363
if (oid != NULL) {
1364
char oid_str[GIT_OID_HEXSZ + 1];
1365
- git_oid_tostr(oid_str, oid_len, oid);
+ git_oid_tostr(oid_str, oid_len+1, oid);
1366
giterr_set(GITERR_ODB, "Object not found - %s (%.*s)",
1367
message, oid_len, oid_str);
1368
} else
0 commit comments