From 8bd26f5e83d971c1b7c911134e0f34d037d10b89 Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Tue, 13 Feb 2018 18:32:26 +0000 Subject: [PATCH] Open EMF files in binary mode --- backend/emf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/emf.c b/backend/emf.c index c5944fe6..5a17643d 100644 --- a/backend/emf.c +++ b/backend/emf.c @@ -1015,7 +1015,7 @@ int emf_plot(struct zint_symbol *symbol) { if (symbol->output_options & BARCODE_STDOUT) { emf_file = stdout; } else { - emf_file = fopen(symbol->outfile, "w"); + emf_file = fopen(symbol->outfile, "wb"); } if (emf_file == NULL) { strcpy(symbol->errtxt, "640: Could not open output file");