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

+3 -1
View File
@@ -844,9 +844,11 @@ static int CmdSmartSetClock(const char *Cmd) {
}
static int CmdSmartList(const char *Cmd) {
char args[128];
char args[128] = {0};
if (strlen(Cmd) == 0) {
snprintf(args, sizeof(args), "-t 7816");
} else {
strncpy(args, Cmd, sizeof(args) - 1);
}
return CmdTraceList(args);
}