1 parent
3628681a50
commit
9df1c62ec5
6 files changed
+17
-15
No files matched your search
+1
-1
@@ -360,7 +360,7 @@ int CmdLFCommandRead(const char *Cmd) {
|
||||
memset(payload.period_extra, 0, sizeof(payload.period_extra));
|
||||
|
||||
if (cmd_len > (size_t)(pm3_max_cmd_data_size() - PAYLOAD_HEADER_SIZE) - 8 * add_crc_ht - 1) {
|
||||
PrintAndLogEx(ERR, "cmd too long, max length is %zu", sizeof(cmd) - 1);
|
||||
PrintAndLogEx(ERR, "cmd too long, max length is %zu", (size_t)(pm3_max_cmd_data_size() - PAYLOAD_HEADER_SIZE) - 8 * add_crc_ht - 1);
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user