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:
parent
e7900d68c3
commit
0567a6337b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user