Skip to content

Commit

Permalink
Update dpcmd.c
Browse files Browse the repository at this point in the history
  • Loading branch information
DediprogEvy authored Feb 14, 2022
1 parent 81d10d9 commit 517ecb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dpcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,8 @@ int FirmwareUpdate()
}

// obtain file size:
filesize = fseek(pFile, 0, SEEK_END);
fseek(pFile, 0, SEEK_END);
filesize = ftell(pFile);
if (filesize < sizeof(FW_INFO)) {
printf("File %s too small.\n", g_parameter_fw);
return -1;
Expand Down

0 comments on commit 517ecb5

Please sign in to comment.