discover/event: Fix incorrect calculation of param data length
authorJeremy Kerr <jk@ozlabs.org>
Thu, 20 Jun 2013 04:00:26 +0000 (12:00 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 24 Jun 2013 05:07:58 +0000 (13:07 +0800)
commit974853d86dd6328ec2aaf6b9ff5b56398942a902
tree9f027f04c9a529cc80432d1f1460c61f1633ece3
parent93dc538ce05cede3293477d5dded057682b9cc92
discover/event: Fix incorrect calculation of param data length

We're not accounting for the action in the event header (only the device
string) when we pass the length of param data to event_parse_params.
This means we walk past the end of the event data while parsing params.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/event.c