From 35df76bdd9536f1b02a04908871904da11292292 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Latour Date: Wed, 15 Apr 2015 15:27:56 -0700 Subject: [PATCH] Use git_oid_cpy() instead of memcpy() --- src/diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diff.c b/src/diff.c index f1bc28fd9..20f8f74c5 100644 --- a/src/diff.c +++ b/src/diff.c @@ -621,7 +621,7 @@ int git_diff__oid_for_entry( git_index *idx; if (!(error = git_repository_index__weakptr(&idx, diff->repo))) { - memcpy(&entry.id, out, sizeof(entry.id)); + git_oid_cpy(&entry.id, out); error = git_index_add(idx, &entry); } }