From 72d31c6fbe6ead6b3e63b892d67331967ad0ed6b Mon Sep 17 00:00:00 2001 From: markwkidd Date: Wed, 7 Dec 2016 15:52:14 -0500 Subject: [PATCH] Update playlist.c --- playlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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';