summaryrefslogtreecommitdiffstats
path: root/apps/playlist_viewer.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-11-18 14:12:01 +0000
committerNils Wallménius <nils@rockbox.org>2007-11-18 14:12:01 +0000
commit4acae4da032ebd045456d3a625cc96ad4d4745d8 (patch)
tree88f634756aa1c40ebcaa4889e8b5bb4637dfc9e9 /apps/playlist_viewer.c
parent940fe31f8102e8723856471896e463d090354aaf (diff)
downloadrockbox-4acae4da032ebd045456d3a625cc96ad4d4745d8.tar.gz
rockbox-4acae4da032ebd045456d3a625cc96ad4d4745d8.tar.bz2
rockbox-4acae4da032ebd045456d3a625cc96ad4d4745d8.zip
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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c
index 7769e683d5..b00e1eba3d 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;
}