mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 06:13:27 -07:00
fixed param_gethex_to_eol
This commit is contained in:
parent
ae5355aefd
commit
f981044703
2 changed files with 5 additions and 3 deletions
|
@ -744,9 +744,9 @@ int CmdHF14AAPDU(const char *cmd) {
|
|||
CLIParserFree();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
CLIParserFree();
|
||||
// PrintAndLog("---str [%d] %s", astr->count, astr->sval[0]);
|
||||
// PrintAndLog("---str [%d] %s", arg_get_str(4)->count, arg_get_str(4)->sval[0]);
|
||||
|
||||
PrintAndLog(">>>>[%s%s%s] %s", activateField ? "sel ": "", leaveSignalON ? "keep ": "", decodeTLV ? "TLV": "", sprint_hex(data, datalen));
|
||||
|
||||
|
|
|
@ -498,8 +498,10 @@ int param_gethex_to_eol(const char *line, int paramnum, uint8_t * data, int maxd
|
|||
|
||||
int indx = bg;
|
||||
while (line[indx]) {
|
||||
if (line[indx] == '\t' || line[indx] == ' ')
|
||||
if (line[indx] == '\t' || line[indx] == ' ') {
|
||||
indx++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (isxdigit(line[indx])) {
|
||||
buf[strlen(buf) + 1] = 0x00;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue