We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 63d04a7 + 65d41d4 commit 3325ceaCopy full SHA for 3325cea
commit.c
@@ -224,7 +224,7 @@ int unregister_shallow(const unsigned char *sha1)
224
if (pos < 0)
225
return -1;
226
if (pos + 1 < commit_graft_nr)
227
- memcpy(commit_graft + pos, commit_graft + pos + 1,
+ memmove(commit_graft + pos, commit_graft + pos + 1,
228
sizeof(struct commit_graft *)
229
* (commit_graft_nr - pos - 1));
230
commit_graft_nr--;
0 commit comments