mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
client should compile without warnings on linux, mac, windows
This commit is contained in:
parent
19d9a7b0ce
commit
759c16b31f
11 changed files with 106 additions and 35 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue