From e0b9c2ea3f96fcaeb2527a4363632c42399a15df Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Mon, 1 May 2023 15:40:13 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20build=20(forgor=20to=20rename=20this=20?= =?UTF-8?q?=F0=9F=92=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scenes/xtreme_app_scene_interface_graphics.c | 2 +- applications/main/xtreme_app/xtreme_app.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/applications/main/xtreme_app/scenes/xtreme_app_scene_interface_graphics.c b/applications/main/xtreme_app/scenes/xtreme_app_scene_interface_graphics.c index 2cfb1f7cc..462f7c6d3 100644 --- a/applications/main/xtreme_app/scenes/xtreme_app_scene_interface_graphics.c +++ b/applications/main/xtreme_app/scenes/xtreme_app_scene_interface_graphics.c @@ -20,7 +20,7 @@ static void xtreme_app_scene_interface_graphics_asset_pack_changed(VariableItem* strlcpy( XTREME_SETTINGS()->asset_pack, index == 0 ? "" : *CharList_get(app->asset_pack_names, index - 1), - MAX_PACK_NAME_LEN); + XTREME_ASSETS_PACK_NAME_LEN); app->asset_pack_index = index; app->save_settings = true; app->require_reboot = true; diff --git a/applications/main/xtreme_app/xtreme_app.c b/applications/main/xtreme_app/xtreme_app.c index eabd25581..27091ac67 100644 --- a/applications/main/xtreme_app/xtreme_app.c +++ b/applications/main/xtreme_app/xtreme_app.c @@ -188,12 +188,12 @@ XtremeApp* xtreme_app_alloc() { Storage* storage = furi_record_open(RECORD_STORAGE); File* folder = storage_file_alloc(storage); FileInfo info; - char* name = malloc(MAX_PACK_NAME_LEN); + char* name = malloc(XTREME_ASSETS_PACK_NAME_LEN); if(storage_dir_open(folder, PACKS_DIR)) { - while(storage_dir_read(folder, &info, name, MAX_PACK_NAME_LEN)) { + while(storage_dir_read(folder, &info, name, XTREME_ASSETS_PACK_NAME_LEN)) { if(info.flags & FSF_DIRECTORY) { - char* copy = malloc(MAX_PACK_NAME_LEN); - strlcpy(copy, name, MAX_PACK_NAME_LEN); + char* copy = malloc(XTREME_ASSETS_PACK_NAME_LEN); + strlcpy(copy, name, XTREME_ASSETS_PACK_NAME_LEN); uint idx = 0; if(strcmp(copy, "NSFW") != 0) { for(; idx < CharList_size(app->asset_pack_names); idx++) {