summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index db93344ef1..173d445f8c 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -231,7 +231,7 @@ static int convert_m3u(char* buf, int buf_len, int buf_max, char* temp)
231 char* dest; 231 char* dest;
232 232
233 /* Locate EOL. */ 233 /* Locate EOL. */
234 while ((buf[i] != '\n') && (buf[i] != '\r') && (i < buf_len)) 234 while ((i < buf_len) && (buf[i] != '\n') && (buf[i] != '\r'))
235 { 235 {
236 i++; 236 i++;
237 } 237 }