From 55e988773d57f4b3e413818b793e9a1f072d5dde Mon Sep 17 00:00:00 2001 From: Adrian Szyndela Date: Tue, 2 Aug 2016 14:05:41 +0200 Subject: [PATCH] Bugfix: corrected sizeofs Change-Id: I9281352c2afa0bb39c69df35ce28054fab83b994 --- dbus/kdbus-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbus/kdbus-common.c b/dbus/kdbus-common.c index c2c2e0c..03428aa 100644 --- a/dbus/kdbus-common.c +++ b/dbus/kdbus-common.c @@ -225,7 +225,7 @@ struct kdbus_item * _kdbus_item_add_id (struct kdbus_item *item, __u64 id) { - item->size = KDBUS_ITEM_HEADER_SIZE + sizeof (struct kdbus_notify_id_change); + item->size = KDBUS_ITEM_HEADER_SIZE + sizeof (id); item->type = KDBUS_ITEM_ID; item->id = id; return KDBUS_ITEM_NEXT (item); @@ -502,7 +502,7 @@ _kdbus_compute_match_items_size (kdbus_t *kdbus, size += KDBUS_ITEM_SIZE (kdbus->bloom.size); if (KDBUS_MATCH_ID_ANY != sender_id) /* unique name present */ - size += KDBUS_ITEM_SIZE (sizeof (struct kdbus_notify_id_change)); + size += KDBUS_ITEM_SIZE (sizeof (sender_id)); else if (NULL != sender_name) size += KDBUS_ITEM_SIZE (strlen (sender_name) + 1); -- 2.7.4