summaryrefslogtreecommitdiff
path: root/Build/source/utils/m-tx/TLpatches/patch-01-write-bin
blob: 222e43ba63ee4ff74e8b2a7b7f3c53954881e901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff -ur mtx-0.63a/files.c mtx-src/files.c
--- mtx-0.63a/files.c	Tue Jan 09 01:39:42 2018
+++ mtx-src/files.c	Wed Apr 25 18:07:12 2018
@@ -289,9 +289,9 @@
   pushFile(infilename);
   strcpy(outfile_NAME, outfilename);
   if (outfile != NULL)
-    outfile = freopen(outfile_NAME, "w", outfile);
+    outfile = freopen(outfile_NAME, "wb", outfile);
   else
-    outfile = fopen(outfile_NAME, "w");
+    outfile = fopen(outfile_NAME, "wb");
   _SETIO(outfile != NULL, FileNotFound);
   strcpy(stylefile_NAME, stylefilename);
   if (stylefile != NULL)
diff -ur mtx-0.63a/globals.c mtx-src/globals.c
--- mtx-0.63a/globals.c	Tue Jan 09 01:39:42 2018
+++ mtx-src/globals.c	Wed Apr 25 18:07:37 2018
@@ -230,7 +230,7 @@
     if (outfile != NULL)
       fclose(outfile);
     outfile = NULL;
-    outfile = fopen(outfile_NAME, "w");
+    outfile = fopen(outfile_NAME, "wb");
     if (outfile == NULL)
       _EscIO2(FileNotFound, outfile_NAME);
     fclose(outfile);