BAS: Minor fix .. end file position is file size - 1

This commit is contained in:
Gregory Nutt 2014-11-02 13:58:52 -06:00
parent 1f28e8c4ba
commit 1c3e09f704

View File

@ -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
}