From 46eec3f568e6c03b73e8b9fa23b20e7aced56cba Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Mon, 22 Jan 2024 07:26:30 +0300 Subject: [PATCH] use printf --- .../nfc/helpers/protocol_support/nfc_protocol_support.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/applications/main/nfc/helpers/protocol_support/nfc_protocol_support.c b/applications/main/nfc/helpers/protocol_support/nfc_protocol_support.c index 5a8c806724..62569f59b1 100644 --- a/applications/main/nfc/helpers/protocol_support/nfc_protocol_support.c +++ b/applications/main/nfc/helpers/protocol_support/nfc_protocol_support.c @@ -583,9 +583,11 @@ static void nfc_protocol_support_scene_emulate_on_enter(NfcApp* instance) { } else { widget_add_string_element(widget, 90, 13, AlignCenter, AlignTop, FontPrimary, "Emulating"); if(!furi_string_empty(instance->file_name)) { - furi_string_set( - temp_str, nfc_device_get_name(instance->nfc_device, NfcDeviceNameTypeFull)); - furi_string_cat_printf(temp_str, "\n%s", furi_string_get_cstr(instance->file_name)); + furi_string_printf( + temp_str, + "%s\n%s", + nfc_device_get_name(instance->nfc_device, NfcDeviceNameTypeFull), + furi_string_get_cstr(instance->file_name)); } else { furi_string_printf( temp_str,