From 0567a6337b84fa045b5732e98203f488274aa2a2 Mon Sep 17 00:00:00 2001 From: Bram Verweij Date: Wed, 8 Nov 2006 18:00:52 +0200 Subject: [PATCH] xfree86/linux acpi: fix tokenising Split on a space, rather on the 'video' string, as strtok takes a char, not a string. --- hw/xfree86/os-support/linux/lnx_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/os-support/linux/lnx_acpi.c b/hw/xfree86/os-support/linux/lnx_acpi.c index aa30e72c2..024e6ef09 100644 --- a/hw/xfree86/os-support/linux/lnx_acpi.c +++ b/hw/xfree86/os-support/linux/lnx_acpi.c @@ -78,7 +78,7 @@ lnxACPIGetEventFromOs(int fd, pmEvent *events, int num) char *data = NULL; /* doesn't appear to be used in the kernel */ unsigned long int notify_l, data_l; - video = strtok(ev, "video"); + video = strtok(ev, " "); GFX = strtok(NULL, " "); #if 0