summaryrefslogtreecommitdiff
path: root/apps/menus
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus')
-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",