Fix build (forgor to rename this 💀)

This commit is contained in:
Willy-JL
2023-05-01 15:40:13 +01:00
parent 22910f8ca5
commit e0b9c2ea3f
2 changed files with 5 additions and 5 deletions

View File

@@ -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++) {