diff options
| author | Nils Wallménius <nils@rockbox.org> | 2007-11-18 14:12:01 +0000 |
|---|---|---|
| committer | Nils Wallménius <nils@rockbox.org> | 2007-11-18 14:12:01 +0000 |
| commit | 4acae4da032ebd045456d3a625cc96ad4d4745d8 (patch) | |
| tree | 88f634756aa1c40ebcaa4889e8b5bb4637dfc9e9 /apps/playlist_viewer.c | |
| parent | 940fe31f8102e8723856471896e463d090354aaf (diff) | |
| download | rockbox-4acae4da032ebd045456d3a625cc96ad4d4745d8.zip rockbox-4acae4da032ebd045456d3a625cc96ad4d4745d8.tar.gz rockbox-4acae4da032ebd045456d3a625cc96ad4d4745d8.tar.bz2 rockbox-4acae4da032ebd045456d3a625cc96ad4d4745d8.tar.xz | |
Use the strrsplt function in one more place
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15662 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist_viewer.c')
| -rw-r--r-- | apps/playlist_viewer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 7769e68..b00e1eb 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c @@ -372,10 +372,7 @@ static void format_name(char* dest, const char* src) strcpy(dest, p+1); /* Remove the extension */ - char* q = strrchr(dest, '.'); - - if (q != NULL) - *q = '\0'; + strrsplt(dest, '.'); break; } |