diff options
-rw-r--r-- | firmware/common/file.c | 2 |
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); | |||
54 | int creat(const char *pathname, int mode) | 54 | int 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 | ||
60 | int open(const char* pathname, int flags) | 60 | int open(const char* pathname, int flags) |