mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-13 23:41:40 +00:00
fix error message SHA truncation in git_odb__error_notfound()
This commit is contained in:
parent
4c06f3e7dc
commit
286e7dbd4b
@ -1229,7 +1229,7 @@ int git_odb__error_notfound(
|
|||||||
{
|
{
|
||||||
if (oid != NULL) {
|
if (oid != NULL) {
|
||||||
char oid_str[GIT_OID_HEXSZ + 1];
|
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)",
|
giterr_set(GITERR_ODB, "Object not found - %s (%.*s)",
|
||||||
message, oid_len, oid_str);
|
message, oid_len, oid_str);
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user