diff options
Diffstat (limited to 'chrome/tools/convert_dict/convert_dict.cc')
-rw-r--r-- | chrome/tools/convert_dict/convert_dict.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/tools/convert_dict/convert_dict.cc b/chrome/tools/convert_dict/convert_dict.cc index bf0a820..ab486ac 100644 --- a/chrome/tools/convert_dict/convert_dict.cc +++ b/chrome/tools/convert_dict/convert_dict.cc @@ -13,6 +13,7 @@ #include <stdio.h> +#include "base/file_util.h" #include "base/icu_util.h" #include "base/process_util.h" #include "base/string_util.h" @@ -113,14 +114,13 @@ int main(int argc, char* argv[]) { std::string out_name = file_base + ".bdic"; printf("Writing %s ...\n", out_name.c_str()); - FILE* out_file; - fopen_s(&out_file, out_name.c_str(), "wb"); + FILE* out_file = file_util::OpenFile(out_name, "wb"); if (!out_file) { printf("ERROR writing file\n"); return 1; } fwrite(&serialized[0], 1, serialized.size(), out_file); - fclose(out_file); + file_util::CloseFile(out_file); return 0; } |