Skip to content

Commit

Permalink
Merge pull request #841 from lassoan/patch-1
Browse files Browse the repository at this point in the history
Fix corrupted raw nrrd file output on Windows
  • Loading branch information
neurolabusc authored Jul 31, 2024
2 parents aea081a + 2ac0cbc commit 949804b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/nii_dicom_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4266,7 +4266,7 @@ int nii_saveNRRD(char *niiFilename, struct nifti_1_header hdr, unsigned char *im
strcat(fname, ".nhdr"); //nrrd or nhdr
else
strcat(fname, ".nrrd"); //nrrd or nhdr
FILE *fp = fopen(fname, "w");
FILE *fp = fopen(fname, "wb");
fprintf(fp, "NRRD0005\n");
fprintf(fp, "# Complete NRRD file format specification at:\n");
fprintf(fp, "# http://teem.sourceforge.net/nrrd/format.html\n");
Expand Down

0 comments on commit 949804b

Please sign in to comment.