Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d1b043 commit daf2a64Copy full SHA for daf2a64
tests/submodule/submodule_helpers.c
@@ -19,8 +19,8 @@ void rewrite_gitmodules(const char *workdir)
19
cl_git_pass(git_buf_joinpath(&in_f, workdir, "gitmodules"));
20
cl_git_pass(git_buf_joinpath(&out_f, workdir, ".gitmodules"));
21
22
- cl_assert((in = fopen(in_f.ptr, "r")) != NULL);
23
- cl_assert((out = fopen(out_f.ptr, "w")) != NULL);
+ cl_assert((in = fopen(in_f.ptr, "rb")) != NULL);
+ cl_assert((out = fopen(out_f.ptr, "wb")) != NULL);
24
25
while (fgets(line, sizeof(line), in) != NULL) {
26
char *scan = line;
0 commit comments