summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/utils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/utils.c b/common/utils.c
index 5248c2c..1b207ea 100644
--- a/common/utils.c
+++ b/common/utils.c
@@ -139,9 +139,7 @@ void buffer_write_to_filename(const char *filename, const char *buffer, uint64_t
{
FILE *f;
- f = fopen(filename, "ab");
- if (!f)
- f = fopen(filename, "wb");
+ f = fopen(filename, "wb");
if (f) {
fwrite(buffer, sizeof(char), length, f);
fclose(f);