actually fix the list options

This commit is contained in:
iceman1001 committed 2020-10-09 20:46:48 +02:00
1 parent cd2c95251f
commit 470a0a5978
17 files changed
+55 -18

No files matched your search

+7 -2
View File
@@ -1772,8 +1772,13 @@ static int CmdEMVScan(const char *Cmd) {
}
static int CmdEMVList(const char *Cmd) {
(void)Cmd; // Cmd is not used so far
return CmdTraceList("7816");
char args[128] = {0};
if (strlen(Cmd) == 0) {
snprintf(args, sizeof(args), "-t 7816");
} else {
strncpy(args, Cmd, sizeof(args) - 1);
}
return CmdTraceList(args);
}
static int CmdEMVTest(const char *Cmd) {