summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSim Domingo <sim@github.com>2016-06-09 22:50:53 +0800
committerEdward Thomson <ethomson@github.com>2016-06-20 11:15:23 -0400
commit2076d3291c6c65d58cab8154b9b08b2758b201c3 (patch)
tree0fe434e0be5675af33c133f59ef692d8100528a9 /src
parentf0ee795ccb552b87637c7973ac64f64437baa041 (diff)
downloadlibgit2-2076d3291c6c65d58cab8154b9b08b2758b201c3.tar.gz
fix error message SHA truncation in git_odb__error_notfound()
Diffstat (limited to 'src')
-rw-r--r--src/odb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb.c b/src/odb.c
index 890e6e2f8..87c1bb6b1 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -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