bugfix for conversion of hex to binary for interactive mode
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@127 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -150,6 +150,7 @@ int pace_translate_apdus(struct sm_ctx *sctx, sc_card_t *card)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apdulen = sizeof buf;
|
||||||
read[linelen - 1] = 0;
|
read[linelen - 1] = 0;
|
||||||
if (sc_hex_to_bin(read, buf, &apdulen) < 0) {
|
if (sc_hex_to_bin(read, buf, &apdulen) < 0) {
|
||||||
sc_error(card->ctx, "Could not format binary string");
|
sc_error(card->ctx, "Could not format binary string");
|
||||||
|
|||||||
Reference in New Issue
Block a user