From f98104470380cc7e4891f733d24b5c87d82f7a4b Mon Sep 17 00:00:00 2001 From: merlokk Date: Tue, 28 Nov 2017 14:58:32 +0200 Subject: [PATCH] fixed param_gethex_to_eol --- client/cmdhf14a.c | 4 ++-- client/util.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/client/cmdhf14a.c b/client/cmdhf14a.c index 493c5f86..dac73749 100644 --- a/client/cmdhf14a.c +++ b/client/cmdhf14a.c @@ -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)); diff --git a/client/util.c b/client/util.c index a1caafdb..37050ccf 100644 --- a/client/util.c +++ b/client/util.c @@ -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;