diff --git a/applications/subghz/scenes/subghz_scene_read_raw.c b/applications/subghz/scenes/subghz_scene_read_raw.c index d7f04306b..628a5f1f0 100644 --- a/applications/subghz/scenes/subghz_scene_read_raw.c +++ b/applications/subghz/scenes/subghz_scene_read_raw.c @@ -25,7 +25,7 @@ bool subghz_scene_read_raw_update_filename(SubGhz* subghz) { break; } - string_set_str(subghz->file_path, temp_str); + string_set(subghz->file_path, temp_str); ret = true; } while(false); @@ -171,7 +171,7 @@ bool subghz_scene_read_raw_on_event(void* context, SceneManagerEvent event) { case SubGhzCustomEventViewReadRAWErase: subghz->txrx->rx_key_state = SubGhzRxKeyStateIDLE; if(subghz_scene_read_raw_update_filename(subghz)) { - string_set_str(subghz->file_path, subghz->file_path_tmp); + strncpy(subghz->file_path_tmp, subghz->file_path, SUBGHZ_MAX_LEN_NAME); subghz_delete_file(subghz); } notification_message(subghz->notifications, &sequence_reset_rgb);