pkcs15-tool: Write data objects in binary mode

This commit is contained in:
divinehawk 2021-05-03 00:24:07 -04:00 committed by Frank Morgner
parent 50eaa6bf57
commit 98663528cf
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ print_data_object(const char *kind, const u8*data, size_t data_len)
if (opt_outfile != NULL) {
FILE *outf;
outf = fopen(opt_outfile, "w");
outf = fopen(opt_outfile, "wb");
if (outf == NULL) {
fprintf(stderr, "Error opening file '%s': %s\n",
opt_outfile, strerror(errno));