mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07:00
Cliparser fix
Fix CLIGetStrwithRetrun Allows casting and requires the buffer length to be passed in. Existing uses of the function have been updated.
This commit is contained in:
parent
8aa70b37e3
commit
bb59250eca
6 changed files with 16 additions and 7 deletions
|
|
@ -417,7 +417,7 @@ static int CmdHIDBrute(const char *Cmd) {
|
|||
CLIExecWithReturn(ctx, Cmd, argtable, false);
|
||||
|
||||
bool verbose = arg_get_lit(ctx, 1);
|
||||
|
||||
formatLen = sizeof(format);
|
||||
CLIGetStrWithReturn(ctx, 2, format, &formatLen);
|
||||
|
||||
format_idx = HIDFindCardFormat((char *) format);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue