opensc-explorer: fix APDU command

Do not ignore first parameter.
This commit is contained in:
Peter Marschall 2019-06-20 18:33:22 +02:00 committed by Frank Morgner
parent 19711d0a13
commit 229dd32e3a
1 changed files with 1 additions and 1 deletions

View File

@ -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) {