summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 6f6db27b2a..3bbe8b2f99 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -1660,9 +1660,9 @@ static int format_track_path(char *dest, char *src, int buf_length, int max,
char *temp_ptr;
/* Zero-terminate the file name */
- while((src[i] != '\n') &&
- (src[i] != '\r') &&
- (i < max))
+ while((i < max) &&
+ (src[i] != '\n') &&
+ (src[i] != '\r'))
i++;
/* Now work back killing white space */