diff --git a/client/cmdlfawid.c b/client/cmdlfawid.c index 67c87773e..02a90413c 100644 --- a/client/cmdlfawid.c +++ b/client/cmdlfawid.c @@ -395,7 +395,8 @@ static int CmdAWIDClone(const char *Cmd) { conn.block_after_ACK = false; } clearCommandBuffer(); - SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, NULL, 0); + uint8_t data[] = {0}; + SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, data, sizeof(data)); if (!WaitForResponseTimeout(CMD_ACK, &resp, T55XX_WRITE_TIMEOUT)) { PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation."); return -1; diff --git a/client/cmdlffdx.c b/client/cmdlffdx.c index d8bdb819f..ca1337adc 100644 --- a/client/cmdlffdx.c +++ b/client/cmdlffdx.c @@ -291,7 +291,8 @@ static int CmdFdxClone(const char *Cmd) { conn.block_after_ACK = false; } clearCommandBuffer(); - SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, NULL, 0); + uint8_t data[] = {0}; + SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, data, sizeof(data)); if (!WaitForResponseTimeout(CMD_ACK, &resp, T55XX_WRITE_TIMEOUT)) { PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation."); return -1; diff --git a/client/cmdlfguard.c b/client/cmdlfguard.c index 1d2a6cbf4..fb1310376 100644 --- a/client/cmdlfguard.c +++ b/client/cmdlfguard.c @@ -180,7 +180,8 @@ static int CmdGuardClone(const char *Cmd) { conn.block_after_ACK = false; } clearCommandBuffer(); - SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, NULL, 0); + uint8_t data[] = {0}; + SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, data, sizeof(data)); if (!WaitForResponseTimeout(CMD_ACK, &resp, T55XX_WRITE_TIMEOUT)) { PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation."); return -1; diff --git a/client/cmdlfjablotron.c b/client/cmdlfjablotron.c index e3e22afa6..a9694c343 100644 --- a/client/cmdlfjablotron.c +++ b/client/cmdlfjablotron.c @@ -165,7 +165,8 @@ static int CmdJablotronClone(const char *Cmd) { conn.block_after_ACK = false; } clearCommandBuffer(); - SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, NULL, 0); + uint8_t data[] = {0}; + SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, data, sizeof(data)); if (!WaitForResponseTimeout(CMD_ACK, &resp, T55XX_WRITE_TIMEOUT)) { PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation."); return -1; diff --git a/client/cmdlfkeri.c b/client/cmdlfkeri.c index 389b47fc4..1575902f8 100644 --- a/client/cmdlfkeri.c +++ b/client/cmdlfkeri.c @@ -156,7 +156,8 @@ static int CmdKeriClone(const char *Cmd) { conn.block_after_ACK = false; } clearCommandBuffer(); - SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, NULL, 0); + uint8_t data[] = {0}; + SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, data, sizeof(data)); if (!WaitForResponseTimeout(CMD_ACK, &resp, T55XX_WRITE_TIMEOUT)) { PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation."); return -1; diff --git a/client/cmdlfnedap.c b/client/cmdlfnedap.c index 77d00fb5c..63a869851 100644 --- a/client/cmdlfnedap.c +++ b/client/cmdlfnedap.c @@ -212,7 +212,8 @@ static int CmdLFNedapClone(const char *Cmd) { conn.block_after_ACK = false; } clearCommandBuffer(); - SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, NULL, 0); + uint8_t data[] = {0}; + SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, data, sizeof(data)); if (!WaitForResponseTimeout(CMD_ACK, &resp, T55XX_WRITE_TIMEOUT)){ PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation."); return -1; diff --git a/client/cmdlfnoralsy.c b/client/cmdlfnoralsy.c index 1f1231a51..54a1ebd4c 100644 --- a/client/cmdlfnoralsy.c +++ b/client/cmdlfnoralsy.c @@ -164,7 +164,8 @@ static int CmdNoralsyClone(const char *Cmd) { conn.block_after_ACK = false; } clearCommandBuffer(); - SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, NULL, 0); + uint8_t data[] = {0}; + SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, data, sizeof(data)); if (!WaitForResponseTimeout(CMD_ACK, &resp, T55XX_WRITE_TIMEOUT)) { PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation."); return -1; diff --git a/client/cmdlfpresco.c b/client/cmdlfpresco.c index 34d144316..999889bcd 100644 --- a/client/cmdlfpresco.c +++ b/client/cmdlfpresco.c @@ -130,7 +130,8 @@ static int CmdPrescoClone(const char *Cmd) { conn.block_after_ACK = false; } clearCommandBuffer(); - SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, NULL, 0); + uint8_t data[] = {0}; + SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, data, sizeof(data)); if (!WaitForResponseTimeout(CMD_ACK, &resp, T55XX_WRITE_TIMEOUT)) { PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation."); return -1; diff --git a/client/cmdlfpyramid.c b/client/cmdlfpyramid.c index fd3363d8a..abefce26b 100644 --- a/client/cmdlfpyramid.c +++ b/client/cmdlfpyramid.c @@ -242,7 +242,8 @@ static int CmdPyramidClone(const char *Cmd) { conn.block_after_ACK = false; } clearCommandBuffer(); - SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, NULL, 0); + uint8_t data[] = {0}; + SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, data, sizeof(data)); if (!WaitForResponseTimeout(CMD_ACK, &resp, T55XX_WRITE_TIMEOUT)) { PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation."); return -1; diff --git a/client/cmdlfvisa2000.c b/client/cmdlfvisa2000.c index e6df8cad2..05d127a34 100644 --- a/client/cmdlfvisa2000.c +++ b/client/cmdlfvisa2000.c @@ -176,7 +176,8 @@ static int CmdVisa2kClone(const char *Cmd) { conn.block_after_ACK = false; } clearCommandBuffer(); - SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, NULL, 0); + uint8_t data[] = {0}; + SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, data, sizeof(data)); if (!WaitForResponseTimeout(CMD_ACK, &resp, T55XX_WRITE_TIMEOUT)) { PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation."); return -1;