Skip to content

Commit caaa6e1

Browse files
committed
Crash fix
1 parent 62238cc commit caaa6e1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

application.fam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ App(
88
fap_category="NFC",
99
fap_author="@acegoal07",
1010
fap_weburl="https://github.com/acegoal07/FlipperZero_NFC_Playlist/tree/main",
11-
fap_version="1.4",
11+
fap_version="1.1",
1212
fap_icon="assets/icon.png",
1313
fap_private_libs=[
1414
Lib(

scences/emulation.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,8 @@ int32_t nfc_playlist_emulation_task(void* context) {
8787

8888
if (EmulationState != NfcPlaylistEmulationState_Emulating) {break;}
8989

90-
char const* full_file_name = strchr(file_path, '/') != NULL ? &strrchr(file_path, '/')[1] : file_path;
91-
char file_name[sizeof(full_file_name)];
92-
strcpy(file_name, full_file_name);
93-
strtok(file_name, ".");
90+
91+
char* file_name = strchr(file_path, '/') != NULL ? &strrchr(file_path, '/')[1] : file_path;
9492
char const* file_ext = &strrchr(file_path, '.')[1];
9593
int time_counter_ms = (options_emulate_timeout[nfc_playlist->settings.emulate_timeout]*1000);
9694

0 commit comments

Comments
 (0)