summaryrefslogtreecommitdiffstats
path: root/apps/recorder
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/recording.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index fdeae03f9b..d5db373717 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -621,7 +621,8 @@ char *rec_create_filename(char *buffer)
pref = prestr[global_settings.rec_source];
}
- strcpy(buffer, global_settings.rec_directory);
+ strcpy(buffer, !strcmp(global_settings.rec_directory, "/")?
+ "": global_settings.rec_directory);
snprintf(ext, sizeof(ext), ".%s",
REC_FILE_ENDING(global_settings.rec_format));