From f82e375bc75e01e053cde3e6c07b38d70964cd01 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Fri, 17 Apr 2020 17:53:41 +0300 Subject: [PATCH] [core] Fix android-cloexec-fopen warning Detected by clang-tidy-8. --- src/mbgl/util/io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mbgl/util/io.cpp b/src/mbgl/util/io.cpp index 84a9ce7ea..5c385140b 100644 --- a/src/mbgl/util/io.cpp +++ b/src/mbgl/util/io.cpp @@ -15,7 +15,7 @@ IOException::IOException(int err, const std::string& msg) } void write_file(const std::string &filename, const std::string &data) { - FILE *fd = fopen(filename.c_str(), "wb"); + FILE *fd = fopen(filename.c_str(), "wbe"); if (fd) { fwrite(data.data(), sizeof(std::string::value_type), data.size(), fd); fclose(fd);