From f9785629e06e57a6b4349719a405bdcd7af2929a Mon Sep 17 00:00:00 2001 From: David Given Date: Sun, 17 Jul 2022 13:01:11 +0200 Subject: [PATCH] Add a binary flag. --- util/opt/cleanup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/opt/cleanup.c b/util/opt/cleanup.c index 3ac39c53d..f82cdc1c1 100644 --- a/util/opt/cleanup.c +++ b/util/opt/cleanup.c @@ -31,7 +31,7 @@ void cleanup(void) c = fclose(outfile); assert(c != EOF); outfile = stdout; - infile = fopen(tempname, "r"); + infile = fopen(tempname, "rb"); if (infile == NULL) error("temp file disappeared"); outshort(sp_magic);