mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-05 06:50:13 +01:00
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 0567a6337b commit)
This commit is contained in:
parent
66b2c9bd2d
commit
be91a981df
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