Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/menu/drivers/ozone.c b/menu/drivers/ozone.c
- index f0d95b611a..0109ad7142 100644
- --- a/menu/drivers/ozone.c
- +++ b/menu/drivers/ozone.c
- @@ -1619,19 +1619,21 @@ static void ozone_context_reset_horizontal_list(ozone_handle_t *ozone)
- char *content_texturepath = (char*)
- malloc(PATH_MAX_LENGTH * sizeof(char));
- + char *icons_path = strdup(ozone->icons_path);
- +
- sysname[0] = texturepath[0] = content_texturepath[0] = '\0';
- fill_pathname_base_noext(sysname, path,
- PATH_MAX_LENGTH * sizeof(char));
- - fill_pathname_join_concat(texturepath, ozone->icons_path, sysname,
- + fill_pathname_join_concat(texturepath, icons_path, sysname,
- file_path_str(FILE_PATH_PNG_EXTENSION),
- PATH_MAX_LENGTH * sizeof(char));
- /* If the playlist icon doesn't exist return default */
- if (!filestream_exists(texturepath))
- - fill_pathname_join_concat(texturepath, ozone->icons_path, "default",
- + fill_pathname_join_concat(texturepath, icons_path, "default",
- file_path_str(FILE_PATH_PNG_EXTENSION),
- PATH_MAX_LENGTH * sizeof(char));
- @@ -1655,7 +1657,7 @@ static void ozone_context_reset_horizontal_list(ozone_handle_t *ozone)
- fill_pathname_join_delim(sysname, sysname,
- file_path_str(FILE_PATH_CONTENT_BASENAME), '-',
- PATH_MAX_LENGTH * sizeof(char));
- - strlcat(content_texturepath, ozone->icons_path, PATH_MAX_LENGTH * sizeof(char));
- + strlcat(content_texturepath, icons_path, PATH_MAX_LENGTH * sizeof(char));
- strlcat(content_texturepath, path_default_slash(), PATH_MAX_LENGTH * sizeof(char));
- strlcat(content_texturepath, sysname, PATH_MAX_LENGTH * sizeof(char));
- @@ -1663,8 +1665,8 @@ static void ozone_context_reset_horizontal_list(ozone_handle_t *ozone)
- /* If the content icon doesn't exist return default-content */
- if (!filestream_exists(content_texturepath))
- {
- - strlcat(ozone->icons_path, "default", PATH_MAX_LENGTH * sizeof(char));
- - fill_pathname_join_delim(content_texturepath, ozone->icons_path,
- + strlcat(icons_path, "default", PATH_MAX_LENGTH * sizeof(char));
- + fill_pathname_join_delim(content_texturepath, icons_path,
- file_path_str(FILE_PATH_CONTENT_BASENAME), '-',
- PATH_MAX_LENGTH * sizeof(char));
- }
- @@ -1718,6 +1720,7 @@ static void ozone_context_reset_horizontal_list(ozone_handle_t *ozone)
- free(sysname);
- free(texturepath);
- free(content_texturepath);
- + free(icons_path);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement