xfree86/linux acpi: fix tokenising

Split on a space, rather on the 'video' string, as strtok takes a char,
not a string.
This commit is contained in:
Bram Verweij 2006-11-08 18:00:52 +02:00 committed by Daniel Stone
parent e7900d68c3
commit 0567a6337b

View File

@ -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