diff options
-rw-r--r-- | junklib.c | 2 | ||||
-rw-r--r-- | plugins/m3u/m3u.c | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -736,7 +736,7 @@ convstr_id3v2 (int version, uint8_t encoding, const unsigned char* str, int sz) } // trim trailing linebreaks for (n = converted_sz-1; n >= 0; n--) { - if (out[n] == '\n') { + if ((uint8_t)out[n] <= 32) { out[n] = 0; } else { diff --git a/plugins/m3u/m3u.c b/plugins/m3u/m3u.c index 189d2b28..8097698c 100644 --- a/plugins/m3u/m3u.c +++ b/plugins/m3u/m3u.c @@ -120,6 +120,7 @@ load_m3u (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, int *pab strncpy (title, c, sizeof (title)-1); title[sizeof(title)-1] = 0; } + trace ("title: %s, artist: %s\n", title, artist); } } } |