OpenPGP: limit output of -d in non-raw mode to real length

This commit is contained in:
Peter Marschall 2018-05-20 16:15:30 +02:00 committed by Frank Morgner
parent 85f4ba6c5f
commit 4a1bf9fb21
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ static int do_dump_do(sc_card_t *card, unsigned int tag)
if (sizeof(buffer) != r)
return EXIT_FAILURE;
} else {
util_hex_dump_asc(stdout, buffer, sizeof(buffer), -1);
util_hex_dump_asc(stdout, buffer, r, -1);
}
return EXIT_SUCCESS;