summaryrefslogtreecommitdiff
path: root/hw/xfree86/os-support/shared/posix_tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xfree86/os-support/shared/posix_tty.c')
-rw-r--r--hw/xfree86/os-support/shared/posix_tty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xfree86/os-support/shared/posix_tty.c b/hw/xfree86/os-support/shared/posix_tty.c
index 7a1a5d736..af4900473 100644
--- a/hw/xfree86/os-support/shared/posix_tty.c
+++ b/hw/xfree86/os-support/shared/posix_tty.c
@@ -425,7 +425,8 @@ xf86FlushInput(int fd)
{
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)