diff options
| author | Yong He <yonghe@outlook.com> | 2017-11-04 18:07:09 -0400 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2017-11-04 18:07:09 -0400 |
| commit | d1009d1a5ac7463dc74169ed7c6e1e692b3541d7 (patch) | |
| tree | b21cd74ca6daabd655f5a2625c2698de16a92dd1 /tools/eval-test/main.cpp | |
| parent | 1f9686ce87573efdd4ad56040deb2d424fe51929 (diff) | |
| parent | 784bd914cface6e5837ef0da7aee0df2e16c4999 (diff) | |
merge with fixWarnings branch
Diffstat (limited to 'tools/eval-test/main.cpp')
| -rw-r--r-- | tools/eval-test/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/eval-test/main.cpp b/tools/eval-test/main.cpp index 486de7bd9..6f1f7a4d8 100644 --- a/tools/eval-test/main.cpp +++ b/tools/eval-test/main.cpp @@ -3,7 +3,7 @@ #include <assert.h> #include <stdio.h> #include <stdlib.h> - +#include "../../source/core/secure-crt.h" #include <slang.h> int main( @@ -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); |
