mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
fix: 'hf mf cload' - too small buffer, needs one more byte for the NULL-terminator
This commit is contained in:
parent
292a4ca602
commit
bd71e15289
1 changed files with 3 additions and 3 deletions
|
@ -2143,7 +2143,7 @@ int CmdHF14AMfCLoad(const char *Cmd) {
|
|||
FILE * f;
|
||||
char filename[FILE_PATH_SIZE];
|
||||
char * fnameptr = filename;
|
||||
char buf[32] = {0x00};
|
||||
char buf[33] = {0x00}; // 32+1 null terminator
|
||||
uint8_t buf8[16] = {0x00};
|
||||
uint8_t fillFromEmulator = 0;
|
||||
int i, len, blockNum, flags=0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue