mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Fix ARM GCC14 warning
error: '%02X' directive output may be truncated writing between 2 and 4 bytes into a region of size 3 [-Werror=format-truncation=]
This commit is contained in:
parent
525ce562e2
commit
80942c8bad
1 changed files with 2 additions and 3 deletions
|
@ -999,7 +999,7 @@ static int seos_pacs_adf_select(char *oid, int oid_len, uint8_t *get_data, int g
|
|||
snprintf(selectedOID, sizeof(selectedOID), "%s", oid);
|
||||
|
||||
uint16_t selectedOIDLen = strlen(selectedOID);
|
||||
char selectedOIDLenHex[3];
|
||||
char selectedOIDLenHex[5];
|
||||
snprintf(selectedOIDLenHex, sizeof(selectedOIDLenHex), "%02X", (selectedOIDLen) / 2);
|
||||
|
||||
char selectedADF[strlen(ADFprefix) + strlen(selectedOIDLenHex) + selectedOIDLen + 1];
|
||||
|
@ -1112,9 +1112,8 @@ static int seos_adf_select(char *oid, int oid_len, int key_index) {
|
|||
const char *ADFprefix = "06";
|
||||
char selectedOID[100];
|
||||
snprintf(selectedOID, sizeof(selectedOID), "%s", oid);
|
||||
|
||||
uint16_t selectedOIDLen = strlen(selectedOID);
|
||||
char selectedOIDLenHex[3];
|
||||
char selectedOIDLenHex[5];
|
||||
snprintf(selectedOIDLenHex, sizeof(selectedOIDLenHex), "%02X", (selectedOIDLen) / 2);
|
||||
|
||||
char selectedADF[strlen(ADFprefix) + strlen(selectedOIDLenHex) + selectedOIDLen + 1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue