Make sscanf a bit more sane wrt the if statement.

SVN revision: 48931
This commit is contained in:
Christopher Michael 2010-05-17 00:18:21 +00:00
parent 08fde98a06
commit 078fe68f2d
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ _e_acpi_cb_server_data(void *data __UNUSED__, int type __UNUSED__, void *event)
ev = event;
/* parse out this acpi string into separate pieces */
if (!(sscanf(ev->data, "%s %4s %8d %8d", device, bus, &sig, &status)) == 4)
if (sscanf(ev->data, "%s %4s %8d %8d", device, bus, &sig, &status) != 4)
return 1;
/* write out acutal acpi received data to stdout for debugging */