mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-23 12:57:07 +00:00
Open EMF files in binary mode
This commit is contained in:
@@ -1015,7 +1015,7 @@ int emf_plot(struct zint_symbol *symbol) {
|
|||||||
if (symbol->output_options & BARCODE_STDOUT) {
|
if (symbol->output_options & BARCODE_STDOUT) {
|
||||||
emf_file = stdout;
|
emf_file = stdout;
|
||||||
} else {
|
} else {
|
||||||
emf_file = fopen(symbol->outfile, "w");
|
emf_file = fopen(symbol->outfile, "wb");
|
||||||
}
|
}
|
||||||
if (emf_file == NULL) {
|
if (emf_file == NULL) {
|
||||||
strcpy(symbol->errtxt, "640: Could not open output file");
|
strcpy(symbol->errtxt, "640: Could not open output file");
|
||||||
|
|||||||
Reference in New Issue
Block a user