Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorあく <alleteam@gmail.com>2021-11-12 18:45:51 +0300
committerGitHub <noreply@github.com>2021-11-12 18:45:51 +0300
commit70d05191780b07564ed44ecc1174119f2056f876 (patch)
treecb0a8dfdca85066a293d8ecfa78bb94a999643ba /applications/subghz
parent558fa5670bb624c63c03f76f9f434dc7189f2aa9 (diff)
Subghz: fix crash on arg free (#815)
Diffstat (limited to 'applications/subghz')
-rw-r--r--applications/subghz/subghz.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/applications/subghz/subghz.c b/applications/subghz/subghz.c
index 22babec3..5ae24b7b 100644
--- a/applications/subghz/subghz.c
+++ b/applications/subghz/subghz.c
@@ -288,6 +288,8 @@ int32_t subghz_app(void* p) {
// Check argument and run corresponding scene
if(p && subghz_key_load(subghz, p)) {
string_t filename;
+ string_init(filename);
+
path_extract_filename_no_ext(p, filename);
strlcpy(
subghz->file_name, string_get_cstr(filename), strlen(string_get_cstr(filename)) + 1);