summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-control.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-11-29 21:03:54 +0100
committerKay Sievers <kay@vrfy.org>2013-11-29 21:03:54 +0100
commitc6dfb87f1d6c87c51dd06ebccb6776443c906441 (patch)
tree55debca594470792af7d2488d86a6ed7162e2ce4 /src/libsystemd-bus/bus-control.c
parent34a2c9e841f66ffdcd81aeaedacec2195cfd472d (diff)
bus: fix size calculation for match data
Diffstat (limited to 'src/libsystemd-bus/bus-control.c')
-rw-r--r--src/libsystemd-bus/bus-control.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-control.c b/src/libsystemd-bus/bus-control.c
index 988d4265ff..5f218c17ea 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;