mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-22 10:12:25 +00:00
legic: parse DCF argument as hex in migrate
This commit is contained in:
1 parent
8fbec332be
commit
92d0cdb909
1 file changed
+1
-1
@@ -211,7 +211,7 @@ static int CmdLegicMigrate(const char *Cmd) {
|
||||
int dcf_len = 0;
|
||||
uint8_t dcf[2] = {0};
|
||||
if (arg_get_str(ctx, 2) != NULL) {
|
||||
CLIParamStrToBuf(arg_get_str(ctx, 2), dcf, sizeof(dcf), &dcf_len);
|
||||
CLIParamHexToBuf(arg_get_str(ctx, 2), dcf, sizeof(dcf), &dcf_len);
|
||||
if (dcf_len != 2) {
|
||||
PrintAndLogEx(WARNING, "DCF must be exactly two bytes");
|
||||
CLIParserFree(ctx);
|
||||
|
||||
Reference in new issue
Block a user