diff options
author | Robert Hak <adiamas@rockbox.org> | 2002-06-27 08:20:09 +0000 |
---|---|---|
committer | Robert Hak <adiamas@rockbox.org> | 2002-06-27 08:20:09 +0000 |
commit | c0d8847f3cf2164adc4aa556395b6fa4ca74c0f4 (patch) | |
tree | d512b333ad89394ebfa51bc84de011d35c41ded7 /apps | |
parent | d15884fab205ca923f8f8521c3f50ea2edb068ac (diff) | |
download | rockbox-c0d8847f3cf2164adc4aa556395b6fa4ca74c0f4.tar.gz rockbox-c0d8847f3cf2164adc4aa556395b6fa4ca74c0f4.zip |
account for white space at the end of a filename
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1225 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playlist.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index bd5c2b2053..c7d1505ae3 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -58,6 +58,11 @@ char* playlist_next(int steps) | |||
58 | (seek < max)) | 58 | (seek < max)) |
59 | seek++; | 59 | seek++; |
60 | 60 | ||
61 | /* Now work back killing white space */ | ||
62 | while((now_playing[seek-1] == ' ') || | ||
63 | (now_playing[seek-1] == '\t')) | ||
64 | seek--; | ||
65 | |||
61 | now_playing[seek]=0; | 66 | now_playing[seek]=0; |
62 | 67 | ||
63 | /* replace backslashes with forward slashes */ | 68 | /* replace backslashes with forward slashes */ |
@@ -243,3 +248,12 @@ void randomise_playlist( playlist_info_t *playlist, unsigned int seed ) | |||
243 | * eval: (load-file "../firmware/rockbox-mode.el") | 248 | * eval: (load-file "../firmware/rockbox-mode.el") |
244 | * end: | 249 | * end: |
245 | */ | 250 | */ |
251 | |||
252 | |||
253 | |||
254 | |||
255 | |||
256 | |||
257 | |||
258 | |||
259 | |||