Skip to content

Commit 4f24f06

Browse files
authored
Update riffext_win.c
open output file in wb mode to avoid Windows' crappy line endings
1 parent 59a72fe commit 4f24f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riffext_win.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ int main(int argc, char** argv) {
3232
char outname[32];
3333
snprintf(outname, 31, "%i.wem", ++nfiles);
3434

35-
FILE* out = fopen(outname, "w");
35+
FILE* out = fopen(outname, "wb");
3636
fwrite("RIFF", 1, 4, out);
3737
fwrite(&filesize, 1, 4, out);
3838
for (int i = 0; i < filesize; i++) {

0 commit comments

Comments
 (0)