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.zip rockbox-c0d8847f3cf2164adc4aa556395b6fa4ca74c0f4.tar.gz rockbox-c0d8847f3cf2164adc4aa556395b6fa4ca74c0f4.tar.bz2 rockbox-c0d8847f3cf2164adc4aa556395b6fa4ca74c0f4.tar.xz | |
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 bd5c2b2..c7d1505 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -58,6 +58,11 @@ char* playlist_next(int steps) (seek < max)) seek++; + /* Now work back killing white space */ + while((now_playing[seek-1] == ' ') || + (now_playing[seek-1] == '\t')) + seek--; + now_playing[seek]=0; /* replace backslashes with forward slashes */ @@ -243,3 +248,12 @@ void randomise_playlist( playlist_info_t *playlist, unsigned int seed ) * eval: (load-file "../firmware/rockbox-mode.el") * end: */ + + + + + + + + + |