diff options
| -rw-r--r-- | apps/playlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index db93344..173d445 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) char* dest; /* Locate EOL. */ - while ((buf[i] != '\n') && (buf[i] != '\r') && (i < buf_len)) + while ((i < buf_len) && (buf[i] != '\n') && (buf[i] != '\r')) { i++; } |