From 382691179f6da54be2b3b1d8bc3146a23b6ea148 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 6 Jan 2010 08:48:19 +0100 Subject: tag: fixed memmove() size argument in tag_delete_item() This function has always been broken, but fortunately nobody used it. --- src/tag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tag.c') 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) { -- cgit v1.2.3