mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
read: fix file offset
This commit is contained in:
@@ -28,6 +28,7 @@ syscallret_t syscall_read(context_t *context, int fd, void *buffer, size_t size)
|
||||
if (ret.errno)
|
||||
goto cleanup;
|
||||
|
||||
file->offset += bytesread;
|
||||
ret.ret = bytesread;
|
||||
ret.errno = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user