diff options
Diffstat (limited to 'reflog-walk.c')
| -rw-r--r-- | reflog-walk.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/reflog-walk.c b/reflog-walk.c index 081f89b70d..81bca2ed23 100644 --- a/reflog-walk.c +++ b/reflog-walk.c @@ -111,10 +111,9 @@ static struct commit_info *get_commit_info(struct commit *commit, struct commit_info *result = &lifo->items[i]; if (pop) { if (i + 1 < lifo->nr) - memmove(lifo->items + i, - lifo->items + i + 1, - (lifo->nr - i) * - sizeof(struct commit_info)); + MOVE_ARRAY(lifo->items + i, + lifo->items + i + 1, + lifo->nr - i); lifo->nr--; } return result; |
