diff --git a/application.fam b/application.fam index 899db4de8d4..aaa8bf753a7 100644 --- a/application.fam +++ b/application.fam @@ -8,7 +8,7 @@ App( fap_category="NFC", fap_author="@acegoal07", fap_weburl="https://github.com/acegoal07/FlipperZero_NFC_Playlist/tree/main", - fap_version="1.4", + fap_version="1.1", fap_icon="assets/icon.png", fap_private_libs=[ Lib( diff --git a/scences/emulation.c b/scences/emulation.c index b208b6c964f..acfaf12b395 100644 --- a/scences/emulation.c +++ b/scences/emulation.c @@ -87,10 +87,8 @@ int32_t nfc_playlist_emulation_task(void* context) { if (EmulationState != NfcPlaylistEmulationState_Emulating) {break;} - char const* full_file_name = strchr(file_path, '/') != NULL ? &strrchr(file_path, '/')[1] : file_path; - char file_name[sizeof(full_file_name)]; - strcpy(file_name, full_file_name); - strtok(file_name, "."); + + char* file_name = strchr(file_path, '/') != NULL ? &strrchr(file_path, '/')[1] : file_path; char const* file_ext = &strrchr(file_path, '.')[1]; int time_counter_ms = (options_emulate_timeout[nfc_playlist->settings.emulate_timeout]*1000);