Skip to content

Commit

Permalink
Crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
acegoal07 committed Feb 23, 2024
1 parent 62238cc commit caaa6e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 2 additions & 4 deletions scences/emulation.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit caaa6e1

Please sign in to comment.