commit | 549a1b88f3e1305eb3ed5dd851029346b6c31d24 | [log] [tgz] |
---|---|---|
author | Nico Huber <nico.h@gmx.de> | Sun Dec 17 01:51:59 2023 +0100 |
committer | Nico Huber <nico.h@gmx.de> | Sun Dec 17 03:02:26 2023 +0100 |
tree | ed3426890b117e74a71c900e69299a46f0866f2e | |
parent | d3644be257427e85d028f88b12240460aa3c2faa [diff] [blame] |
Drop `File_Len` from VFS.Read() The `File_Len` is never supposed to change outside the FS driver.
diff --git a/src/filo-fs-vfs.adb b/src/filo-fs-vfs.adb index 838cddf..a76d84c 100644 --- a/src/filo-fs-vfs.adb +++ b/src/filo-fs-vfs.adb
@@ -54,7 +54,7 @@ Read_Len : Natural; begin if Is_Open (State) then - Read (State, File_Max, File_Pos, Buffer, Read_Len); + Read (State, File_Pos, Buffer, Read_Len); Set_File_Pos (File_Pos); else Read_Len := 0;