Bus id can be longer than 4 chars, so fix scanf.

SVN revision: 49201
This commit is contained in:
Christopher Michael 2010-05-26 02:29:48 +00:00
parent 5e3e302464
commit a9f6e4186e
1 changed files with 3 additions and 2 deletions

View File

@ -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;
/*