forked from enlightenment/enlightenment
Bus id can be longer than 4 chars, so fix scanf.
SVN revision: 49201
This commit is contained in:
parent
5e3e302464
commit
a9f6e4186e
|
@ -151,11 +151,12 @@ _e_acpi_cb_server_data(void *data __UNUSED__, int type __UNUSED__, void *event)
|
|||
|
||||
ev = event;
|
||||
|
||||
/* write out actual acpi received data to stdout for debugging */
|
||||
/* write out actual acpi received data to stdout for debugging
|
||||
res = fwrite(ev->data, ev->size, 1, stdout);
|
||||
*/
|
||||
|
||||
/* parse out this acpi string into separate pieces */
|
||||
if (sscanf(ev->data, "%s %4s %d %d", device, bus, &sig, &status) != 4)
|
||||
if (sscanf(ev->data, "%s %s %d %d", device, bus, &sig, &status) != 4)
|
||||
return 1;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue