diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2023-01-14 22:54:20 +0100 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2023-01-19 15:36:18 -0500 |
commit | 4d53d1b52b858d4a1e90fc74fb93cda957d00cb4 (patch) | |
tree | ba00fc4fb84f148c84ea3e98a330d50501786cfb /apps/plugins | |
parent | f441d6bf05668a475525682dffdbca3555d63fdb (diff) | |
download | rockbox-4d53d1b52b858d4a1e90fc74fb93cda957d00cb4.tar.gz rockbox-4d53d1b52b858d4a1e90fc74fb93cda957d00cb4.zip |
PictureFlow: fix_path_part checked too many chars
Shouldn't have any effect if album_name
is null-terminated, but still....
Change-Id: I51acb6c7858347d3bd922758ac4f0fcde349c9e1
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/pictureflow/pictureflow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c index 999ed2563f..65446a1565 100644 --- a/apps/plugins/pictureflow/pictureflow.c +++ b/apps/plugins/pictureflow/pictureflow.c | |||
@@ -4190,7 +4190,7 @@ static int context_menu(void) | |||
4190 | /* add a leading slash so that catalog_add_to_a_playlist | 4190 | /* add a leading slash so that catalog_add_to_a_playlist |
4191 | later prefills the name when creating a new playlist */ | 4191 | later prefills the name when creating a new playlist */ |
4192 | rb->snprintf(album_name, MAX_PATH, "/%s", get_album_name(center_index)); | 4192 | rb->snprintf(album_name, MAX_PATH, "/%s", get_album_name(center_index)); |
4193 | rb->fix_path_part(album_name, 1, sizeof(album_name)); | 4193 | rb->fix_path_part(album_name, 1, sizeof(album_name) - 2); |
4194 | file_name = album_name; | 4194 | file_name = album_name; |
4195 | attr = ATTR_DIRECTORY; | 4195 | attr = ATTR_DIRECTORY; |
4196 | } | 4196 | } |