mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
cmdlft55xx : Fix buf overrun (gcc 10 error)
src/cmdlft55xx.c:2560:43: error: ‘ - (Unknown)’ directive output may be truncated writing 21 bytes into a region of size between 15 and 24 [-Werror=format-truncation=] 2560 | snprintf(retStr, sizeof(buf), "%u - " _RED_("(Unknown)"), id); | ^~~~~~~ src/cmdlft55xx.c:2560:13: note: ‘snprintf’ output between 23 and 32 bytes into a destination of size 25 2560 | snprintf(retStr, sizeof(buf), "%u - " _RED_("(Unknown)"), id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
77a834954e
commit
b377ca763a
1 changed files with 1 additions and 1 deletions
|
@ -2538,7 +2538,7 @@ bool AcquireData(uint8_t page, uint8_t block, bool pwdmode, uint32_t password, u
|
|||
}
|
||||
|
||||
char *GetPskCfStr(uint32_t id, bool q5) {
|
||||
static char buf[25];
|
||||
static char buf[40];
|
||||
char *retStr = buf;
|
||||
switch (id) {
|
||||
case 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue