Bugfix: corrected sizeofs 94/82294/1 accepted/tizen/common/20160809.183722 accepted/tizen/ivi/20160809.232322 accepted/tizen/mobile/20160809.232314 accepted/tizen/tv/20160809.232304 accepted/tizen/wearable/20160809.232424 submit/tizen/20160809.013929
authorAdrian Szyndela <adrian.s@samsung.com>
Tue, 2 Aug 2016 12:05:41 +0000 (14:05 +0200)
committerAdrian Szyndela <adrian.s@samsung.com>
Tue, 2 Aug 2016 12:06:27 +0000 (14:06 +0200)
Change-Id: I9281352c2afa0bb39c69df35ce28054fab83b994

dbus/kdbus-common.c

index c2c2e0c..03428aa 100644 (file)
@@ -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);