vendor/libgit2/src/libgit2/annotated_commit.c in rugged-1.6.5 vs vendor/libgit2/src/libgit2/annotated_commit.c in rugged-1.7.1

- old
+ new

@@ -37,11 +37,11 @@ annotated_commit->type = GIT_ANNOTATED_COMMIT_REAL; if ((error = git_commit_dup(&annotated_commit->commit, commit)) < 0) goto done; - git_oid_fmt(annotated_commit->id_str, git_commit_id(commit)); - annotated_commit->id_str[GIT_OID_SHA1_HEXSIZE] = '\0'; + git_oid_tostr(annotated_commit->id_str, GIT_OID_MAX_HEXSIZE + 1, + git_commit_id(commit)); if (!description) description = annotated_commit->id_str; annotated_commit->description = git__strdup(description);