X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/67d78d0cdeb15dd3898fdcdfb5c1efbb85070942..ea54ec739592304a3aa03f3f1bc24c12c4d4b708:/client/cmdhficlass.c diff --git a/client/cmdhficlass.c b/client/cmdhficlass.c index cf0128be..70c18aba 100644 --- a/client/cmdhficlass.c +++ b/client/cmdhficlass.c @@ -1044,7 +1044,8 @@ int CmdHFiClassCloneTag(const char *Cmd) { // else we have to create a share memory int i; fseek(f,startblock*8,SEEK_SET); - if ( fread(tag_data,sizeof(iclass_block_t),endblock - startblock + 1,f) == 0){ + size_t bytes_read = fread(tag_data,sizeof(iclass_block_t),endblock - startblock + 1,f); + if ( bytes_read == 0){ PrintAndLog("File reading error."); fclose(f); return 2;