diff options
author | Martin Scarratt <mmmm@rockbox.org> | 2006-09-27 19:12:37 +0000 |
---|---|---|
committer | Martin Scarratt <mmmm@rockbox.org> | 2006-09-27 19:12:37 +0000 |
commit | 84cbab18da4b986e8bd3427cc9d3a5e9296fd4a5 (patch) | |
tree | bffddccac39bff4c4915a34c94f5f9f4afde91d1 /apps | |
parent | d5dcb49f17d8fb2965cdae47f2dbf161e5ddc5a6 (diff) | |
download | rockbox-84cbab18da4b986e8bd3427cc9d3a5e9296fd4a5.tar.gz rockbox-84cbab18da4b986e8bd3427cc9d3a5e9296fd4a5.zip |
Fixed the possiblity of fooling the recording screen into writing to a non existent directory.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11079 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/recorder/recording.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index ff970f7b7c..e98730b582 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -1259,6 +1259,7 @@ bool recording_screen(bool no_source) | |||
1259 | global_settings.rec_editable, | 1259 | global_settings.rec_editable, |
1260 | global_settings.rec_prerecord_time); | 1260 | global_settings.rec_prerecord_time); |
1261 | 1261 | ||
1262 | rec_create_directory(); | ||
1262 | #ifdef HAVE_AGC | 1263 | #ifdef HAVE_AGC |
1263 | if (global_settings.rec_source == AUDIO_SRC_MIC) { | 1264 | if (global_settings.rec_source == AUDIO_SRC_MIC) { |
1264 | agc_preset = global_settings.rec_agc_preset_mic; | 1265 | agc_preset = global_settings.rec_agc_preset_mic; |