summaryrefslogtreecommitdiffstats
path: root/apps/menus
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-11-26 21:21:25 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2022-12-01 22:29:35 -0500
commit177a15b2edfd370a1dc441cad45d32b7492ffd2b (patch)
treedd1e55e43bafabbd26ad2e289d543e5634cb29c7 /apps/menus
parent773fa7874d1f1fcec65120fcafd746947a8939ee (diff)
downloadrockbox-177a15b2edfd370a1dc441cad45d32b7492ffd2b.tar.gz
rockbox-177a15b2edfd370a1dc441cad45d32b7492ffd2b.zip
playlist_catalog remove static playlist_dir in favor of generation at runtime
this needs tested by the heavy playlist users with the addition of initialize_catalog_buf there shouldn't be any stack overflow concerns since we are no longer creating another max_path sized buffer when one is already available this also simplifies the code a bit rather than carrying around the playlist directory just generate it on the fly copies the directory to the supplied buffer add catbroswe_status to keep track of what browse context(s) are currently in use Change-Id: I145ec501f601c84bb52f2241ed28c6aefab6897b
Diffstat (limited to 'apps/menus')
-rw-r--r--apps/menus/playlist_menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/menus/playlist_menu.c b/apps/menus/playlist_menu.c
index 357efe6b29..89c93edc2e 100644
--- a/apps/menus/playlist_menu.c
+++ b/apps/menus/playlist_menu.c
@@ -61,8 +61,8 @@ int save_playlist_screen(struct playlist_info* playlist)
if (!dot && len <= 1)
{
- snprintf(temp, sizeof(temp), "%s%s",
- catalog_get_directory(), DEFAULT_DYNAMIC_PLAYLIST_NAME);
+ catalog_get_directory(temp, sizeof(temp));
+ strlcat(temp, DEFAULT_DYNAMIC_PLAYLIST_NAME, sizeof(temp));
}
dot = strrchr(temp, '.');