coverity fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user