From a658e1068eb2f849736931d2b99bcb6290c7ec0a Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 29 Jul 2022 18:45:47 +0200 Subject: syscall: up the max argument count to 5; make write accept flags --- src/user/app/init/driver/ansiterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user/app/init/driver/ansiterm.c') diff --git a/src/user/app/init/driver/ansiterm.c b/src/user/app/init/driver/ansiterm.c index b5d3772..5daab41 100644 --- a/src/user/app/init/driver/ansiterm.c +++ b/src/user/app/init/driver/ansiterm.c @@ -20,7 +20,7 @@ static void flush(void) { /* we have to do multiple write() calls if we're behind a shitty passthrough fs * i don't like this either */ while (off < sizeof(vga)) - off += _syscall_write(vga_fd, (void*)vga + off, sizeof(vga) - off, off); + off += _syscall_write(vga_fd, (void*)vga + off, sizeof(vga) - off, off, 0); dirty = false; pendingFlush = false; } -- cgit v1.2.3