legic: parse DCF argument as hex in migrate

This commit is contained in:
Idan Horowitz committed 2026-06-24 21:41:49 +03:00
1 parent 8fbec332be
commit 92d0cdb909
1 file changed
+1 -1
+1 -1
View File
@@ -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);