summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/common/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c
index 177635d0be..504273fd67 100644
--- a/firmware/common/file.c
+++ b/firmware/common/file.c
@@ -54,7 +54,7 @@ static int flush_cache(int fd);
54int creat(const char *pathname, int mode) 54int creat(const char *pathname, int mode)
55{ 55{
56 (void)mode; 56 (void)mode;
57 return open(pathname, O_WRONLY|O_CREAT); 57 return open(pathname, O_WRONLY|O_CREAT|O_TRUNC);
58} 58}
59 59
60int open(const char* pathname, int flags) 60int open(const char* pathname, int flags)