summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/mpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index fbdc112..6872ee1 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -1856,7 +1856,7 @@ static void mpeg_thread(void)
start_recording();
demand_irq_enable(true);
- mpeg_file = creat(recording_filename, O_WRONLY);
+ mpeg_file = open(recording_filename, O_WRONLY|O_CREAT);
if(mpeg_file < 0)
panicf("recfile: %d", mpeg_file);