From a97110661c26049d73f2fa6fe2f80372fb047ee4 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Sat, 30 Apr 2005 01:50:29 +0000 Subject: fix bug 421: database read failed with newline in ID3-tag git-svn-id: https://svn.musicpd.org/mpd/trunk@3231 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- 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 96dbb40f3..2d74c5c81 100644 --- a/src/tag.c +++ b/src/tag.c @@ -430,13 +430,13 @@ inline static void appendToTagItems(MpdTag * tag, int type, char * value, dup[len] = '\0'; fixUtf8(dup); + stripReturnChar(dup); tag->numOfItems++; tag->items = realloc(tag->items, tag->numOfItems*sizeof(MpdTagItem)); tag->items[i].type = type; tag->items[i].value = getTagItemString(type, dup); - //tag->items[i].value = strdup(dup); free(dup); } -- cgit v1.2.3