mirror of
https://github.com/ish-app/ish.git
synced 2026-02-01 14:32:26 +00:00
Limit the size of write() logs
This commit is contained in:
parent
e541847df7
commit
6e741f23e4
@ -189,7 +189,7 @@ dword_t sys_write(fd_t fd_no, addr_t buf_addr, dword_t size) {
|
||||
if (user_read(buf_addr, buf, size))
|
||||
return _EFAULT;
|
||||
buf[size] = '\0';
|
||||
STRACE("write(%d, \"%s\", %d)", fd_no, buf, size);
|
||||
STRACE("write(%d, \"%.100s\", %d)", fd_no, buf, size);
|
||||
struct fd *fd = f_get(fd_no);
|
||||
if (fd == NULL)
|
||||
return _EBADF;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user