summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Verweij <amverweij@gmail.com>2006-11-08 18:00:52 +0200
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-11-08 18:10:40 +0200
commitbe91a981dfbc4ea9e6f1c47fafdec3132ca09923 (patch)
tree455170483003d2be75ea04681dc2bf79179c894c
parent66b2c9bd2dddf8f8410147ebf1de7a6c045d8249 (diff)
xfree86/linux acpi: fix tokenising
Split on a space, rather on the 'video' string, as strtok takes a char, not a string. (cherry picked from 0567a6337b84fa045b5732e98203f488274aa2a2 commit)
-rw-r--r--hw/xfree86/os-support/linux/lnx_acpi.c2
1 files changed, 1 insertions, 1 deletions
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