From aecf875987c3eac766dcc03d0b92812d9b1e694e Mon Sep 17 00:00:00 2001 From: Alexander Date: Sat, 7 Oct 2023 22:06:02 +0200 Subject: [PATCH] mlibc: fix tcsetpgrp We are passing a pointer here, not the raw value. --- sysdeps/managarm/generic/ioctl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/managarm/generic/ioctl.cpp b/sysdeps/managarm/generic/ioctl.cpp index 67b5281adb..01b06f2bb4 100644 --- a/sysdeps/managarm/generic/ioctl.cpp +++ b/sysdeps/managarm/generic/ioctl.cpp @@ -337,7 +337,7 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result) { managarm::fs::GenericIoctlRequest req(getSysdepsAllocator()); req.set_command(request); - req.set_pgid((long int)param); + req.set_pgid(*param); frg::string ser(getSysdepsAllocator()); req.SerializeToString(&ser);