Commit 35df76bd by Pierre-Olivier Latour

Use git_oid_cpy() instead of memcpy()

parent 623fbd93
...@@ -621,7 +621,7 @@ int git_diff__oid_for_entry( ...@@ -621,7 +621,7 @@ int git_diff__oid_for_entry(
git_index *idx; git_index *idx;
if (!(error = git_repository_index__weakptr(&idx, diff->repo))) { 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); error = git_index_add(idx, &entry);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment