diff --git a/apps/playlist.c b/apps/playlist.c index 2e21aef717..942a5785b1 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -39,6 +39,7 @@ char* playlist_next(int type) int seek = playlist.indices[playlist.index]; int max; int fd; + int i; (void)type; /* prevent compiler warning until this is gets used */ playlist.index = (playlist.index+1) % playlist.amount; @@ -57,12 +58,22 @@ char* playlist_next(int type) seek++; now_playing[seek]=0; + + /* replace backslashes with forward slashes */ + for ( i=1; i