mirror of
https://github.com/drasko/codezero.git
synced 2026-04-03 10:39:04 +02:00
More changes
This commit is contained in:
@@ -645,7 +645,9 @@ int sys_write(l4id_t sender, int fd, void *buf, int count)
|
||||
* of this change when the file is flushed (e.g. via fflush()
|
||||
* or close())
|
||||
*/
|
||||
vmfile->length += count;
|
||||
if (task->fd[fd].cursor + count > vmfile->length)
|
||||
vmfile->length = task->fd[fd].cursor + count;
|
||||
|
||||
task->fd[fd].cursor += count;
|
||||
retval = count;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user