Skip to content

Commit 7aa541e

Browse files
authored
Merge pull request #2200 from WardF/gh2118.wif
Merge PR #2118
2 parents b092f7d + 1d3d2ea commit 7aa541e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

nc_test/tst_inmemory.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,11 @@ writefile(const char* path, NC_memio* memio)
213213
char* p = NULL;
214214

215215
/* Open the file for writing */
216-
f = NCfopen(path,"w");
216+
#ifdef _WIN32
217+
f = fopen(path,"wb");
218+
#else
219+
f = fopen(path,"w");
220+
#endif
217221
if(f == NULL)
218222
{status = errno; goto done;}
219223
count = memio->size;

0 commit comments

Comments
 (0)