mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-11 20:13:24 +00:00
Merge pull request #3818 from meatcoder/fix_odb_read_error
Fix truncation of SHA in error message for git_odb_read
This commit is contained in:
commit
c80efb5f6d
@ -1362,7 +1362,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