fsize can't be zero
This commit is contained in:
@@ -2076,7 +2076,7 @@ int CmdHF14AMfURestore(const char *Cmd) {
|
||||
fseek(f, 0, SEEK_END);
|
||||
long fsize = ftell(f);
|
||||
fseek(f, 0, SEEK_SET);
|
||||
if (fsize < 0) {
|
||||
if (fsize <= 0) {
|
||||
PrintAndLogEx(WARNING, "Error, when getting filesize");
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user