From 86596b38f9b35725a9a8028eca93f31a3dcf753a Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Mon, 25 Mar 2024 23:34:26 +0300 Subject: [PATCH] fixes for latest api --- non_catalog_apps/wiegand/scenes/wiegand_data.c | 2 +- non_catalog_apps/wiegand/scenes/wiegand_load.c | 2 +- non_catalog_apps/wiegand/scenes/wiegand_save.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/non_catalog_apps/wiegand/scenes/wiegand_data.c b/non_catalog_apps/wiegand/scenes/wiegand_data.c index 8f8a69ee..1f726936 100644 --- a/non_catalog_apps/wiegand/scenes/wiegand_data.c +++ b/non_catalog_apps/wiegand/scenes/wiegand_data.c @@ -223,7 +223,7 @@ void wiegand_data_scene_on_enter(void* context) { App* app = context; widget_reset(app->widget); widget_add_string_element(app->widget, 0, 0, AlignLeft, AlignTop, FontPrimary, "Wiegand Data"); - FuriString* buffer = furi_string_alloc(1024); + FuriString* buffer = furi_string_alloc(); furi_string_printf(buffer, "Bits: %d\n", bit_count); for(int i = 0; i < bit_count; i++) { furi_string_push_back(buffer, data[i] ? '1' : '0'); diff --git a/non_catalog_apps/wiegand/scenes/wiegand_load.c b/non_catalog_apps/wiegand/scenes/wiegand_load.c index ea57a491..8b4402d3 100644 --- a/non_catalog_apps/wiegand/scenes/wiegand_load.c +++ b/non_catalog_apps/wiegand/scenes/wiegand_load.c @@ -9,7 +9,7 @@ void wiegand_load_scene_on_enter(void* context) { furi_string_set(app->file_path, browser_options.base_path); - FuriString* buffer = furi_string_alloc(1024); + FuriString* buffer = furi_string_alloc(); if(dialog_file_browser_show(app->dialogs, app->file_path, app->file_path, &browser_options)) { Storage* storage = furi_record_open(RECORD_STORAGE); diff --git a/non_catalog_apps/wiegand/scenes/wiegand_save.c b/non_catalog_apps/wiegand/scenes/wiegand_save.c index 6f9408ac..01d65f9b 100644 --- a/non_catalog_apps/wiegand/scenes/wiegand_save.c +++ b/non_catalog_apps/wiegand/scenes/wiegand_save.c @@ -25,7 +25,7 @@ void ensure_dir_exists(Storage* storage) { void wiegand_save(void* context) { App* app = context; - FuriString* buffer = furi_string_alloc(1024); + FuriString* buffer = furi_string_alloc(); FuriString* file_path = furi_string_alloc(); furi_string_printf( file_path, "%s/%s%s", WIEGAND_SAVE_FOLDER, app->file_name, WIEGAND_SAVE_EXTENSION);