Merge pull request #2200 from WardF/gh2118.wif

Merge PR #2118
This commit is contained in:
Ward Fisher 2022-01-25 11:17:13 -07:00 committed by GitHub
commit 7aa541e288
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,7 +213,11 @@ writefile(const char* path, NC_memio* memio)
char* p = NULL;
/* Open the file for writing */
f = NCfopen(path,"w");
#ifdef _WIN32
f = fopen(path,"wb");
#else
f = fopen(path,"w");
#endif
if(f == NULL)
{status = errno; goto done;}
count = memio->size;