Skip to content

Commit

Permalink
reverted to good old fopen
Browse files Browse the repository at this point in the history
  • Loading branch information
pjb7687 committed Jan 24, 2021
1 parent 47cfe56 commit 11502a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.h.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS 1

#cmakedefine HAVE_DIRENT_H
#cmakedefine BUILD_FOR_SNUCL
Expand Down
3 changes: 1 addition & 2 deletions read_twobit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ int read_twobit(string &filepath, vector<string> &chrnames, string &content, vec
vector<unsigned int> nblocksizes;

#ifdef _WIN32
FILE *input = 0;
assert(fopen_s(&input, filepath.c_str(), "rb") == 0);
FILE *input = fopen(filepath.c_str(), "rb");
#else
FILE *input;
char path_buf[PATH_MAX + 1]; memset(path_buf, 0, PATH_MAX + 1);
Expand Down

0 comments on commit 11502a6

Please sign in to comment.