diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-04-17 17:53:41 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-04-17 23:48:21 +0300 |
commit | f82e375bc75e01e053cde3e6c07b38d70964cd01 (patch) | |
tree | e5907767f8738df6b2175ad6dd7719bb28202090 | |
parent | fea8a83e7f72ba59e41e713b3a37f6b946565d74 (diff) |
[core] Fix android-cloexec-fopen warning
Detected by clang-tidy-8.
-rw-r--r-- | src/mbgl/util/io.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |