aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-01-06 08:48:19 +0100
committerMax Kellermann <max@duempel.org>2010-01-06 08:48:23 +0100
commit382691179f6da54be2b3b1d8bc3146a23b6ea148 (patch)
tree5e4f2ffa3cdc4e4c2640ab545ef5858d58518462 /src/tag.c
parent01c5cb985cf79182e790d999307604e5fea1533a (diff)
downloadmpd-382691179f6da54be2b3b1d8bc3146a23b6ea148.tar.gz
mpd-382691179f6da54be2b3b1d8bc3146a23b6ea148.tar.xz
mpd-382691179f6da54be2b3b1d8bc3146a23b6ea148.zip
tag: fixed memmove() size argument in tag_delete_item()
This function has always been broken, but fortunately nobody used it.
Diffstat (limited to 'src/tag.c')
-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) {