mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-08 20:00:19 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue