diff options
Diffstat (limited to 'apps/wps.c')
-rw-r--r-- | apps/wps.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/wps.c b/apps/wps.c index 838f8f786a..aabccd6a9c 100644 --- a/apps/wps.c +++ b/apps/wps.c | |||
@@ -48,6 +48,7 @@ static void draw_screen(struct mp3entry* id3) | |||
48 | char* end; | 48 | char* end; |
49 | char* szTok; | 49 | char* szTok; |
50 | char* szDelimit; | 50 | char* szDelimit; |
51 | char* szPeriod; | ||
51 | char szArtist[26]; | 52 | char szArtist[26]; |
52 | char szBuff[257]; | 53 | char szBuff[257]; |
53 | szBuff[sizeof(szBuff)-1] = 0; | 54 | szBuff[sizeof(szBuff)-1] = 0; |
@@ -62,6 +63,13 @@ static void draw_screen(struct mp3entry* id3) | |||
62 | szArtist[sizeof(szArtist)-1] = 0; | 63 | szArtist[sizeof(szArtist)-1] = 0; |
63 | szDelimit = strrchr(id3->path, ch); | 64 | szDelimit = strrchr(id3->path, ch); |
64 | lcd_puts(0,0, szArtist?szArtist:"<nothing>"); | 65 | lcd_puts(0,0, szArtist?szArtist:"<nothing>"); |
66 | |||
67 | // removes the .mp3 from the end of the display buffer | ||
68 | szPeriod = strrchr(szDelimit, '.'); | ||
69 | if (szPeriod != NULL) { | ||
70 | memset(szPeriod, 0, 3); | ||
71 | } | ||
72 | |||
65 | lcd_puts_scroll(0,LINE_Y,(++szDelimit)); | 73 | lcd_puts_scroll(0,LINE_Y,(++szDelimit)); |
66 | break; | 74 | break; |
67 | } | 75 | } |