actually fix the list options

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

View File

@@ -269,9 +269,11 @@ static int usage_hf_14a_reader(void) {
}
static int CmdHF14AList(const char *Cmd) {
char args[128];
char args[128] = {0};
if (strlen(Cmd) == 0) {
snprintf(args, sizeof(args), "-t 14a");
} else {
strncpy(args, Cmd, sizeof(args) - 1);
}
return CmdTraceList(args);
}