summaryrefslogtreecommitdiff
path: root/tools/eval-test
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-11-04 16:09:48 -0400
committerYong He <yonghe@outlook.com>2017-11-04 16:09:48 -0400
commit288841f66c808af70ad7687f9704c87075129b18 (patch)
treeb6e2e4f5a28be28b28a346f3803121c34bb28f87 /tools/eval-test
parent664e0da8dff1d04860cc46ce8139cbd47e15c552 (diff)
fixed all warnings
Diffstat (limited to 'tools/eval-test')
-rw-r--r--tools/eval-test/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/eval-test/main.cpp b/tools/eval-test/main.cpp
index 486de7bd9..0159f0107 100644
--- a/tools/eval-test/main.cpp
+++ b/tools/eval-test/main.cpp
@@ -16,7 +16,8 @@ int main(
char const* inputPath = argv[1];
// Slurp in the input file, so that we can compile and run it
- FILE* inputFile = fopen(inputPath, "rb");
+ FILE* inputFile;
+ fopen_s(&inputFile, inputPath, "rb");
assert(inputFile);
fseek(inputFile, 0, SEEK_END);