projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34a2c9e
)
bus: fix size calculation for match data
author
Kay Sievers
<kay@vrfy.org>
Fri, 29 Nov 2013 20:03:54 +0000
(21:03 +0100)
committer
Kay Sievers
<kay@vrfy.org>
Fri, 29 Nov 2013 20:03:54 +0000
(21:03 +0100)
src/libsystemd-bus/bus-control.c
patch
|
blob
|
history
diff --git
a/src/libsystemd-bus/bus-control.c
b/src/libsystemd-bus/bus-control.c
index
988d426
..
5f218c1
100644
(file)
--- 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;