Skip to content

Commit

Permalink
mlibc: fix tcsetpgrp
Browse files Browse the repository at this point in the history
We are passing a pointer here, not the raw value.
  • Loading branch information
ElectrodeYT committed Oct 7, 2023
1 parent f5e1b11 commit aecf875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysdeps/managarm/generic/ioctl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result) {

managarm::fs::GenericIoctlRequest<MemoryAllocator> req(getSysdepsAllocator());
req.set_command(request);
req.set_pgid((long int)param);
req.set_pgid(*param);

frg::string<MemoryAllocator> ser(getSysdepsAllocator());
req.SerializeToString(&ser);
Expand Down

0 comments on commit aecf875

Please sign in to comment.