[systemd-commits] src/libsystemd-bus
Kay Sievers
kay at kemper.freedesktop.org
Fri Nov 29 12:05:04 PST 2013
src/libsystemd-bus/bus-control.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit c6dfb87f1d6c87c51dd06ebccb6776443c906441
Author: Kay Sievers <kay at vrfy.org>
Date: Fri Nov 29 21:03:54 2013 +0100
bus: fix size calculation for match data
diff --git a/src/libsystemd-bus/bus-control.c b/src/libsystemd-bus/bus-control.c
index 988d426..5f218c1 100644
--- a/src/libsystemd-bus/bus-control.c
+++ b/src/libsystemd-bus/bus-control.c
@@ -549,7 +549,8 @@ static int add_name_change_match(sd_bus *bus,
if (is_name_id != 0) {
uint64_t sz =
ALIGN8(offsetof(struct kdbus_cmd_match, items) +
- offsetof(struct kdbus_item, id_change));
+ offsetof(struct kdbus_item, id_change) +
+ sizeof(struct kdbus_notify_id_change));
union {
uint8_t buffer[sz];
struct kdbus_cmd_match match;
More information about the systemd-commits
mailing list