mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
Kernel+LibC+LibCore: Pass fcntl extra argument as pointer-sized variable
The extra argument to fcntl is a pointer in the case of F_GETLK/F_SETLK and we were pulling out a u32, leading to pointer truncation on x86_64. Among other things, this fixes Assistant on x86_64 :^)
This commit is contained in:
parent
656528f483
commit
d728017578
4 changed files with 4 additions and 4 deletions
|
@ -248,7 +248,7 @@ ErrorOr<int> fcntl(int fd, int command, ...)
|
|||
{
|
||||
va_list ap;
|
||||
va_start(ap, command);
|
||||
u32 extra_arg = va_arg(ap, u32);
|
||||
uintptr_t extra_arg = va_arg(ap, uintptr_t);
|
||||
int rc = ::fcntl(fd, command, extra_arg);
|
||||
va_end(ap);
|
||||
if (rc < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue