LoadEML: don't complain on the last \n

This commit is contained in:
Philippe Teuwen 2019-04-28 16:47:50 +02:00
parent 8ebc44ee81
commit c6172b4d9c

View file

@ -365,6 +365,8 @@ int loadFileEML(const char *preferredName, const char *suffix, void *data, size_
memset(line, 0, sizeof(line));
if (fgets(line, sizeof(line), f) == NULL) {
if (feof(f))
break;
fclose(f);
PrintAndLogEx(FAILED, "File reading error.");
retval = 2;