Update playlist.c

This commit is contained in:
markwkidd 2016-12-07 15:52:14 -05:00 committed by GitHub
parent f710129f32
commit 72d31c6fbe

View File

@ -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';