mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
fix data load
now not crashing client when entering a folder path without filename
This commit is contained in:
parent
238e41c683
commit
93915858ea
2 changed files with 9 additions and 1 deletions
|
@ -1676,6 +1676,8 @@ static int CmdLoad(const char *Cmd) {
|
|||
int len = 0;
|
||||
|
||||
len = strlen(Cmd);
|
||||
if (len == 0) return PM3_EFILE;
|
||||
|
||||
if (len > FILE_PATH_SIZE) len = FILE_PATH_SIZE;
|
||||
memcpy(filename, Cmd, len);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue