Merge pull request #107 from p-l-/fix-hfmf

Fix filenames for hf mf cload / csave
This commit is contained in:
Martin Holst Swende 2015-05-24 23:10:21 +02:00
commit 96c4f5517e

View file

@ -1575,10 +1575,10 @@ int CmdHF14AMfCLoad(const char *Cmd)
return 0;
} else {
len = strlen(Cmd);
if (len > FILE_PATH_SIZE) len = FILE_PATH_SIZE;
if (len > FILE_PATH_SIZE - 4) len = FILE_PATH_SIZE - 4;
memcpy(filename, Cmd, len);
fnameptr += len-4;
fnameptr += len;
sprintf(fnameptr, ".eml");
@ -1744,7 +1744,7 @@ int CmdHF14AMfCSave(const char *Cmd) {
return 0;
} else {
len = strlen(Cmd);
if (len > FILE_PATH_SIZE) len = FILE_PATH_SIZE;
if (len > FILE_PATH_SIZE - 4) len = FILE_PATH_SIZE - 4;
if (len < 1) {
// get filename