summaryrefslogtreecommitdiff
path: root/src/libgit2/annotated_commit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgit2/annotated_commit.c')
-rw-r--r--src/libgit2/annotated_commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgit2/annotated_commit.c b/src/libgit2/annotated_commit.c
index e48947679..7bd8b6077 100644
--- a/src/libgit2/annotated_commit.c
+++ b/src/libgit2/annotated_commit.c
@@ -40,7 +40,7 @@ static int annotated_commit_init(
goto done;
git_oid_fmt(annotated_commit->id_str, git_commit_id(commit));
- annotated_commit->id_str[GIT_OID_HEXSZ] = '\0';
+ annotated_commit->id_str[GIT_OID_SHA1_HEXSIZE] = '\0';
if (!description)
description = annotated_commit->id_str;