BAS: Minor fix .. end file position is file size - 1
This commit is contained in:
parent
1f28e8c4ba
commit
1c3e09f704
@ -1986,7 +1986,7 @@ long int FS_lof(int chn)
|
||||
return -1;
|
||||
}
|
||||
|
||||
return (long int)(endpos / file[chn]->recLength);
|
||||
return (long int)((endpos + 1) / file[chn]->recLength);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user