* fhandler_console.cc (fhandler_console::ioctl): Properly treat TIOCLINUX
argument as a char. * fhandler_tty.cc (fhandler_tty_slave::ioctl): Use coercion to properly set char value.
This commit is contained in:
@@ -1048,7 +1048,7 @@ fhandler_tty_slave::ioctl (unsigned int cmd, void *arg)
|
||||
get_ttyp ()->arg.value = val;
|
||||
SetEvent (ioctl_request_event);
|
||||
WaitForSingleObject (ioctl_done_event, INFINITE);
|
||||
*(unsigned char *) arg = get_ttyp ()->arg.value & 0xFF;
|
||||
*(unsigned char *) arg = (unsigned char) (get_ttyp ()->arg.value);
|
||||
}
|
||||
break;
|
||||
case KDGKBMETA:
|
||||
|
Reference in New Issue
Block a user