mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-03 13:19:03 +00:00
BAS: Minor fix .. end file position is file size - 1
This commit is contained in:
parent
1f28e8c4ba
commit
1c3e09f704
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue