mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
coverity fixes
This commit is contained in:
parent
bb9cf8ec40
commit
99a82cf7d2
2 changed files with 2 additions and 7 deletions
|
@ -789,13 +789,6 @@ static int CmdHFSTPwd(const char *Cmd) {
|
|||
|
||||
static int CmdHFSTList(const char *Cmd) {
|
||||
return CmdTraceListAlias(Cmd, "hf st", "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 command_t CommandTable[] = {
|
||||
|
|
|
@ -655,6 +655,8 @@ int CmdTraceListAlias(const char *Cmd, const char *alias, const char *protocol)
|
|||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
CLIParserFree(ctx);
|
||||
|
||||
char args[128] = {0};
|
||||
snprintf(args, sizeof(args), "-t %s ", protocol);
|
||||
strncat(args, Cmd, sizeof(args) - strlen(args) - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue