client should compile without warnings on linux, mac, windows

This commit is contained in:
roel@libnfc.org 2013-03-14 15:03:04 +00:00
commit 759c16b31f
11 changed files with 106 additions and 35 deletions

View file

@ -147,7 +147,10 @@ int CmdLFHitagSim(const char *Cmd) {
return 1;
}
tag_mem_supplied = true;
fread(c.d.asBytes,48,1,pf);
if (fread(c.d.asBytes,48,1,pf) == 0) {
PrintAndLog("Error: File reading error");
return 1;
}
fclose(pf);
} else {
tag_mem_supplied = false;