* 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:
@@ -723,9 +723,9 @@ fhandler_console::ioctl (unsigned int cmd, void *buf)
|
||||
}
|
||||
return 0;
|
||||
case TIOCLINUX:
|
||||
if (* (int *) buf == 6)
|
||||
if (*(unsigned char *) buf == 6)
|
||||
{
|
||||
* (int *) buf = dev_state->nModifiers;
|
||||
*(unsigned char *) buf = (unsigned char) dev_state->nModifiers;
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user