summaryrefslogtreecommitdiffstats
path: root/apps/recorder
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-11-29 12:51:44 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-11-29 12:51:44 +0000
commit47f670d3c27cd0eb93ddbff91c9f6a60febcbf27 (patch)
treebe0cff17e8b36b4f44921fa64f2cdb2d3e9c85b7 /apps/recorder
parent4fd775f7f0f5e6c7f2fd277ea0889afecef191e7 (diff)
downloadrockbox-47f670d3c27cd0eb93ddbff91c9f6a60febcbf27.tar.gz
rockbox-47f670d3c27cd0eb93ddbff91c9f6a60febcbf27.tar.bz2
rockbox-47f670d3c27cd0eb93ddbff91c9f6a60febcbf27.zip
FS#11725: fix duplicationg slash indicating root in filename.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28705 a1c6a512-1295-4272-9138-f99709370657
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));