aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tag.c b/src/tag.c
index 91082de11..fb4c40a55 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -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) {