opensc-explorer: fix APDU command
Do not ignore first parameter.
This commit is contained in:
parent
19711d0a13
commit
229dd32e3a
@ -1840,7 +1840,7 @@ static int do_apdu(int argc, char **argv)
|
||||
return usage(do_apdu);
|
||||
|
||||
/* loop over the args and parse them, making sure the result fits into buf[] */
|
||||
for (i = 1, len = 0; i < (unsigned) argc && len < sizeof(buf); i++) {
|
||||
for (i = 0, len = 0; i < (unsigned) argc && len < sizeof(buf); i++) {
|
||||
size_t len0 = sizeof(buf) - len;
|
||||
|
||||
if ((r = parse_string_or_hexdata(argv[i], buf + len, &len0)) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user