Skip to content

Commit

Permalink
LibC: Don't truncate arguments for ioctl() on x86_64
Browse files Browse the repository at this point in the history
Among other things this makes "less" work on x86_64.
  • Loading branch information
gunnarbeutner authored and alimpfard committed Jul 21, 2021
1 parent f2c9ef3 commit 3904541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Libraries/LibC/ioctl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ int ioctl(int fd, unsigned request, ...)
{
va_list ap;
va_start(ap, request);
unsigned arg = va_arg(ap, unsigned);
FlatPtr arg = va_arg(ap, FlatPtr);
int rc = syscall(SC_ioctl, fd, request, arg);
va_end(ap);
__RETURN_WITH_ERRNO(rc, rc, -1);
Expand Down

0 comments on commit 3904541

Please sign in to comment.