diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-15 19:53:07 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-15 19:53:07 +0200 |
commit | f297a92e05e3e57b1b9350b64c8407f4a1436f09 (patch) | |
tree | 45a4bcfd123130a3373b6b3e143a41a56410f996 /src | |
parent | d5e5490164755425fcfe69746f6a79645695c8d6 (diff) |
Create example start recording script
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 19a885f..760dcd6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2571,7 +2571,7 @@ int main(int argc, char **argv) { } else { if(replay_buffer_size_secs == -1) { char directory_buf[PATH_MAX]; - strcpy(directory_buf, filename); + snprintf(directory_buf, sizeof(directory_buf), "%s", filename); char *directory = dirname(directory_buf); if(strcmp(directory, ".") != 0 && strcmp(directory, "/") != 0) { if(create_directory_recursive(directory) != 0) { |