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:
Diffstat (limited to 'lib/toolbox/stream/file_stream.c')
-rw-r--r--lib/toolbox/stream/file_stream.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/toolbox/stream/file_stream.c b/lib/toolbox/stream/file_stream.c
index 70db8af9..f7363c6b 100644
--- a/lib/toolbox/stream/file_stream.c
+++ b/lib/toolbox/stream/file_stream.c
@@ -176,8 +176,9 @@ static bool file_stream_delete_and_insert(
string_t scratch_name;
string_t tmp_name;
string_init(tmp_name);
- storage_get_next_filename(_stream->storage, "/any", ".scratch", ".pad", tmp_name, 255);
- string_init_printf(scratch_name, "/any/%s.pad", string_get_cstr(tmp_name));
+ storage_get_next_filename(
+ _stream->storage, STORAGE_ANY_PATH_PREFIX, ".scratch", ".pad", tmp_name, 255);
+ string_init_printf(scratch_name, ANY_PATH("%s.pad"), string_get_cstr(tmp_name));
string_clear(tmp_name);
do {