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

@ -326,7 +326,10 @@ int loadTraceCard(uint8_t *tuid) {
blockNum = 0;
while(!feof(f)){
memset(buf, 0, sizeof(buf));
fgets(buf, sizeof(buf), f);
if (fgets(buf, sizeof(buf), f) == NULL) {
PrintAndLog("File reading error.");
return 2;
}
if (strlen(buf) < 32){
if (feof(f)) break;