--- ./hw/xfree86/os-support/shared/posix_tty.c.orig +++ ./hw/xfree86/os-support/shared/posix_tty.c @@ -460,7 +460,8 @@ { fd_set fds; struct timeval timeout; - char c[4]; + /* this needs to be big enough to flush an evdev event. */ + char c[256]; DebugF("FlushingSerial\n"); if (tcflush(fd, TCIFLUSH) == 0)