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);