opensc-explorer::do_apdu() number of bytes in printed message 'Sending'
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3849 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
2005bc2e92
commit
a8dc5bdeef
|
@ -1272,12 +1272,12 @@ static int do_apdu(int argc, char **argv)
|
|||
}
|
||||
|
||||
len = strlen(argv[0]);
|
||||
len0 = len;
|
||||
sc_hex_to_bin(argv[0], buf, &len);
|
||||
if (len < 4) {
|
||||
puts("APDU too short (must be at least 4 bytes)");
|
||||
return 1;
|
||||
}
|
||||
len0 = len;
|
||||
|
||||
memset(&apdu, 0, sizeof(apdu));
|
||||
p = buf;
|
||||
|
|
Loading…
Reference in New Issue