From 229dd32e3affd3fbe7bdaae9fea213d400435073 Mon Sep 17 00:00:00 2001 From: Peter Marschall Date: Thu, 20 Jun 2019 18:33:22 +0200 Subject: [PATCH] opensc-explorer: fix APDU command Do not ignore first parameter. --- src/tools/opensc-explorer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/opensc-explorer.c b/src/tools/opensc-explorer.c index 25c88be8..41e620a5 100644 --- a/src/tools/opensc-explorer.c +++ b/src/tools/opensc-explorer.c @@ -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) {