| 1 |
diff -ur mtx-0.63d.orig/files.c mtx-0.63d/files.c |
| 2 |
--- mtx-0.63d.orig/files.c 2022-07-26 05:35:12.000000000 +0900 |
| 3 |
+++ mtx-0.63d/files.c 2022-09-14 22:07:11.000000000 +0900 |
| 4 |
@@ -289,9 +289,9 @@ |
| 5 |
pushFile(infilename); |
| 6 |
strcpy(outfile_NAME, outfilename); |
| 7 |
if (outfile != NULL) |
| 8 |
- outfile = freopen(outfile_NAME, "w", outfile); |
| 9 |
+ outfile = freopen(outfile_NAME, "wb", outfile); |
| 10 |
else |
| 11 |
- outfile = fopen(outfile_NAME, "w"); |
| 12 |
+ outfile = fopen(outfile_NAME, "wb"); |
| 13 |
_SETIO(outfile != NULL, FileNotFound); |
| 14 |
strcpy(stylefile_NAME, stylefilename); |
| 15 |
if (stylefile != NULL) |
| 16 |
diff -ur mtx-0.63d.orig/globals.c mtx-0.63d/globals.c |
| 17 |
--- mtx-0.63d.orig/globals.c 2022-07-26 05:35:12.000000000 +0900 |
| 18 |
+++ mtx-0.63d/globals.c 2022-09-14 22:07:11.000000000 +0900 |
| 19 |
@@ -230,7 +230,7 @@ |
| 20 |
if (outfile != NULL) |
| 21 |
fclose(outfile); |
| 22 |
outfile = NULL; |
| 23 |
- outfile = fopen(outfile_NAME, "w"); |
| 24 |
+ outfile = fopen(outfile_NAME, "wb"); |
| 25 |
if (outfile == NULL) |
| 26 |
_EscIO2(FileNotFound, outfile_NAME); |
| 27 |
fclose(outfile); |