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:
frankmorgner
2010-06-03 21:34:09 +00:00
parent 3e64d5516d
commit dad03da87b

View File

@@ -150,6 +150,7 @@ int pace_translate_apdus(struct sm_ctx *sctx, sc_card_t *card)
break;
}
apdulen = sizeof buf;
read[linelen - 1] = 0;
if (sc_hex_to_bin(read, buf, &apdulen) < 0) {
sc_error(card->ctx, "Could not format binary string");