summaryrefslogtreecommitdiff
path: root/apps/menus/playlist_menu.c
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2019-08-17 06:05:40 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2019-08-17 06:34:52 -0500
commitfd19a2caa29793174b9ac524903282244b9d3553 (patch)
treec95f81d6f975b45f5b08a26bde223f73ee24e0f1 /apps/menus/playlist_menu.c
parent0ff6a31d7dc51ff2f0a6147a0fadff2d6359ecb9 (diff)
downloadrockbox-fd19a2caa29793174b9ac524903282244b9d3553.tar.gz
rockbox-fd19a2caa29793174b9ac524903282244b9d3553.zip
Playlist Fix failure to append default file name
FS#12992 - Can't create playlist with all tracks on device (regression) references this issue empty_playlist() only sets filename[0] = '\0' the code was checking filename[1].. bug ensued strip extra leading '/' from default path Change-Id: Ibd8973666ee45583b9e11e3ba317c0e247f085c1
Diffstat (limited to 'apps/menus/playlist_menu.c')
-rw-r--r--apps/menus/playlist_menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/menus/playlist_menu.c b/apps/menus/playlist_menu.c
index 175ca19959..2de73415b2 100644
--- a/apps/menus/playlist_menu.c
+++ b/apps/menus/playlist_menu.c
@@ -50,7 +50,7 @@ int save_playlist_screen(struct playlist_info* playlist)
50 if (!dot) 50 if (!dot)
51 { 51 {
52 /* folder of some type */ 52 /* folder of some type */
53 if (temp[1] != '\0') 53 if (len > 1)
54 strcpy(&temp[len-1], ".m3u8"); 54 strcpy(&temp[len-1], ".m3u8");
55 else 55 else
56 snprintf(temp, sizeof(temp), "%s%s", 56 snprintf(temp, sizeof(temp), "%s%s",