1
0
mirror of https://github.com/woo-j/zint.git synced 2024-12-24 05:33:56 +03:00

Open EMF files in binary mode

This commit is contained in:
Robin Stuart 2018-02-13 18:32:26 +00:00
parent ee763cb135
commit 8bd26f5e83

View File

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