projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e3e302
)
Bus id can be longer than 4 chars, so fix scanf.
author
Christopher Michael
<cpmichael1@comcast.net>
Wed, 26 May 2010 02:29:48 +0000
(
02:29
+0000)
committer
Christopher Michael
<cpmichael1@comcast.net>
Wed, 26 May 2010 02:29:48 +0000
(
02:29
+0000)
SVN revision: 49201
src/bin/e_acpi.c
patch
|
blob
|
history
diff --git
a/src/bin/e_acpi.c
b/src/bin/e_acpi.c
index
bb5b2ce
..
d027b62
100644
(file)
--- a/
src/bin/e_acpi.c
+++ b/
src/bin/e_acpi.c
@@
-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 %
4
s %d %d", device, bus, &sig, &status) != 4)
+ if (sscanf(ev->data, "%s %s %d %d", device, bus, &sig, &status) != 4)
return 1;
/*