mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
make sure there is room for null terminator
This commit is contained in:
parent
a2fa5cbc44
commit
bb9cf8ec40
1 changed files with 1 additions and 1 deletions
|
@ -657,7 +657,7 @@ int CmdTraceListAlias(const char *Cmd, const char *alias, const char *protocol)
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||||
char args[128] = {0};
|
char args[128] = {0};
|
||||||
snprintf(args, sizeof(args), "-t %s ", protocol);
|
snprintf(args, sizeof(args), "-t %s ", protocol);
|
||||||
strncat(args, Cmd, sizeof(args) - strlen(args));
|
strncat(args, Cmd, sizeof(args) - strlen(args) - 1);
|
||||||
return CmdTraceList(args);
|
return CmdTraceList(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue