aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tag.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tag.c b/src/tag.c
index df066dc03..22d8cf206 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -323,6 +323,9 @@ void addItemToMpdTagWithLen(MpdTag * tag, int itemType, char * value, int len) {
if(ignoreTagItems[itemType]) return;
if(!value || !len) return;
+
+ /* we can't hold more than 255 items */
+ if(tag->numOfItems == 255) return;
appendToTagItems(tag, itemType, value, len);
}