diff options
Diffstat (limited to '')
-rw-r--r-- | src/tag.c | 2 | ||||
-rw-r--r-- | src/utils.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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); } diff --git a/src/utils.c b/src/utils.c index 32b079353..f3d0effb0 100644 --- a/src/utils.c +++ b/src/utils.c @@ -48,7 +48,7 @@ char * strDupToUpper(char * str) { } void stripReturnChar(char * string) { - while(string && (string = strstr(string,"\n"))) { + while(string && (string = strchr(string,'\n'))) { *string = ' '; } } |