summaryrefslogtreecommitdiff
path: root/apps/plugins/pitch_detector.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pitch_detector.c')
-rw-r--r--apps/plugins/pitch_detector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/pitch_detector.c b/apps/plugins/pitch_detector.c
index 10125c1302..de0aff9fef 100644
--- a/apps/plugins/pitch_detector.c
+++ b/apps/plugins/pitch_detector.c
@@ -381,7 +381,7 @@ enum settings_file_status tuner_settings_load(struct tuner_settings* settings,
381enum settings_file_status tuner_settings_save(struct tuner_settings* settings, 381enum settings_file_status tuner_settings_save(struct tuner_settings* settings,
382 char* filename) 382 char* filename)
383{ 383{
384 int fd = rb->creat(filename); 384 int fd = rb->creat(filename, 0666);
385 if(fd >= 0){ /* does file exist? */ 385 if(fd >= 0){ /* does file exist? */
386 rb->write (fd, settings, sizeof(*settings)); 386 rb->write (fd, settings, sizeof(*settings));
387 rb->close(fd); 387 rb->close(fd);