Commit 38269117 authored by Max Kellermann's avatar Max Kellermann

tag: fixed memmove() size argument in tag_delete_item()

This function has always been broken, but fortunately nobody used it.
parent 01c5cb98
......@@ -172,7 +172,7 @@ static void tag_delete_item(struct tag *tag, unsigned idx)
if (tag->num_items - idx > 0) {
memmove(tag->items + idx, tag->items + idx + 1,
tag->num_items - idx);
(tag->num_items - idx) * sizeof(tag->items[0]));
}
if (tag->num_items > 0) {
......
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