summaryrefslogtreecommitdiff
path: root/benchmarks/stdio_benchmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/stdio_benchmark.cpp')
-rw-r--r--benchmarks/stdio_benchmark.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/stdio_benchmark.cpp b/benchmarks/stdio_benchmark.cpp
index 965a3ae9f..9c81e0fc0 100644
--- a/benchmarks/stdio_benchmark.cpp
+++ b/benchmarks/stdio_benchmark.cpp
@@ -29,7 +29,7 @@ static void FillFile(TemporaryFile& tf) {
memset(line, 'x', sizeof(line));
line[sizeof(line) - 1] = '\0';
- FILE* fp = fopen(tf.path, "w");
+ FILE* fp = fopen(tf.path, "we");
for (size_t i = 0; i < 4096; ++i) fputs(line, fp);
fclose(fp);
}