trying to please codeQL

This commit is contained in:
Philippe Teuwen committed 2024-09-03 23:00:50 +02:00
1 parent e6c427fe21
commit 17ddc2db82
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -9858,15 +9858,15 @@ static int CmdHF14AMfISEN(const char *Cmd) {
PrintAndLogEx(NORMAL, "[\n [");
for (uint8_t sec = 0; sec < num_sectors; sec++) {
PrintAndLogEx(NORMAL, " [\"%08x\", \"%08x\"]%s",
bytes_to_num(resp.data.asBytes + ((sec * 2) * 9), 4),
bytes_to_num(resp.data.asBytes + (((sec * 2) + 1) * 9), 4),
(uint32_t) bytes_to_num(resp.data.asBytes + ((sec * 2) * 9), 4),
(uint32_t) bytes_to_num(resp.data.asBytes + (((sec * 2) + 1) * 9), 4),
sec < num_sectors - 1 ? "," : "");
}
PrintAndLogEx(NORMAL, " ],\n [");
for (uint8_t sec = 0; sec < num_sectors; sec++) {
PrintAndLogEx(NORMAL, " [\"%08x\", \"%08x\"]%s",
bytes_to_num(resp.data.asBytes + ((sec * 2) * 9) + 4, 4),
bytes_to_num(resp.data.asBytes + (((sec * 2) + 1) * 9) + 4, 4),
(uint32_t) bytes_to_num(resp.data.asBytes + ((sec * 2) * 9) + 4, 4),
(uint32_t) bytes_to_num(resp.data.asBytes + (((sec * 2) + 1) * 9) + 4, 4),
sec < num_sectors - 1 ? "," : "");
}
PrintAndLogEx(NORMAL, " ],\n [");