Debian Codegraph @

utils/vlna/TLpatches/patch-04-write-bin

raw
1 diff -ur -x vlna.c -x vlna.dvi -x vlna.idx -x vlna.scn -x vlna.tex vlna-1.5.orig/vlna.w vlna-1.5/vlna.w
2 --- vlna-1.5.orig/vlna.w 2011-05-02 16:02:38.000000000 +0200
3 +++ vlna-1.5/vlna.w 2012-06-16 18:43:33.000000000 +0200
4 @@ -226,7 +226,7 @@
5 infile = stdin; outfile = stdout;
6 if (argc >= 2) infile = fopen (argv[1], "r");
7 if (infile == NULL) ioerr (argv[1]), exit (IO_ERR);
8 - if (argc == 3) outfile = fopen(argv[2], "w");
9 + if (argc == 3) outfile = fopen(argv[2], "wb");
10 if (outfile == NULL) ioerr (argv[2]), exit (IO_ERR);
11 if (argc >= 2) filename = argv[1];
12 else filename = NULL;
13 @@ -252,7 +252,7 @@
14 if (infile == NULL) {
15 ioerr (argv[0]); continue;
16 }
17 - outfile = fopen (argv[0], "w");
18 + outfile = fopen (argv[0], "wb");
19 if (outfile == NULL) {
20 ioerr (argv[0]);
21 rename (backup, argv[0]);