mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
sys_write has to return the number of written bytes
=> fix bug
This commit is contained in:
parent
9063ced999
commit
f1bf053c23
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ static int sys_write(int fd, const char* buf, size_t len)
|
|||
for(i=0; i<len; i++)
|
||||
kputchar(buf[i]);
|
||||
|
||||
return 0;
|
||||
return len;
|
||||
}
|
||||
|
||||
static ssize_t sys_sbrk(int incr)
|
||||
|
|
Loading…
Add table
Reference in a new issue