diff --git a/playlist.c b/playlist.c index d1548df98d..0de4958c7c 100644 --- a/playlist.c +++ b/playlist.c @@ -463,8 +463,8 @@ static bool playlist_read_file( if (!filestream_gets(file, buf[i], sizeof(buf[i]))) goto end; - /* Read playlist entry regardless - * of Windows or Unix line endings + /* Read playlist entry and terminate string with NULL + * regardless of Windows or Unix line endings */ if((last = strpbrk(buf[i], "\n\r"))) *last = '\0';