Skip to content

Commit

Permalink
xfree86/linux acpi: fix tokenising
Browse files Browse the repository at this point in the history
Split on a space, rather on the 'video' string, as strtok takes a char,
not a string.
(cherry picked from 0567a63 commit)
  • Loading branch information
amverweij authored and Daniel Stone committed Nov 8, 2006
1 parent 66b2c9b commit be91a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/xfree86/os-support/linux/lnx_acpi.c
Expand Up @@ -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
Expand Down

0 comments on commit be91a98

Please sign in to comment.