Bus id can be longer than 4 chars, so fix scanf.
authorChristopher Michael <cpmichael1@comcast.net>
Wed, 26 May 2010 02:29:48 +0000 (02:29 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Wed, 26 May 2010 02:29:48 +0000 (02:29 +0000)
SVN revision: 49201

src/bin/e_acpi.c

index bb5b2ce..d027b62 100644 (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;
 
    /*