fix data load now not crashing client when entering a folder path without filename

This commit is contained in:
iceman1001 2019-09-21 08:47:12 +02:00
commit 93915858ea
2 changed files with 9 additions and 1 deletions

View file

@ -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);