OpenPGP: limit output of -d in non-raw mode to real length
This commit is contained in:
parent
85f4ba6c5f
commit
4a1bf9fb21
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue