mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-16 10:03:04 -07:00
covery 265057 - fseek
This commit is contained in:
parent
b7e8ee86a0
commit
30c45c4741
1 changed files with 7 additions and 3 deletions
|
@ -856,9 +856,13 @@ int loadFileDICTIONARYEx(const char *preferredName, void *data, size_t maxdatale
|
|||
goto out;
|
||||
}
|
||||
|
||||
if (startFilePosition)
|
||||
fseek(f, startFilePosition, SEEK_SET);
|
||||
|
||||
if (startFilePosition) {
|
||||
if (fseek(f, startFilePosition, SEEK_SET) < 0){
|
||||
retval = PM3_EFILE;
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
// read file
|
||||
while (!feof(f)) {
|
||||
size_t filepos = ftell(f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue