aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-11-10 22:13:30 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-11-10 22:13:30 +0000
commit41bf67ae994c83dad93ca0efecad9c8da94bf4ca (patch)
treed907ddbc9f2653c8eb9f487914027c7825f22679
parent91a621e0764658fa04339c181444f6aeb5a7327b (diff)
downloadmpd-41bf67ae994c83dad93ca0efecad9c8da94bf4ca.tar.gz
mpd-41bf67ae994c83dad93ca0efecad9c8da94bf4ca.tar.xz
mpd-41bf67ae994c83dad93ca0efecad9c8da94bf4ca.zip
we can't store more than 255 tag items per tag
git-svn-id: https://svn.musicpd.org/mpd/trunk@2592 09075e82-0dd4-0310-85a5-a0d7c8717e4f
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);
}