Change-Id: I3d9aa7f2d608e6706600a87ad5dc570033244f98
dbus_bool_t res = _dbus_asv_add_byte_array (&array_iter,
"LinuxSecurityLabel",
info.sec_label,
- strlen (info.sec_label)+1);
+ info.sec_label_len);
dbus_free (info.sec_label);
reply = reply_fixed_array (message, DBUS_TYPE_BYTE,
info.sec_label,
- strlen (info.sec_label)+1);
+ info.sec_label_len);
dbus_free (info.sec_label);
return reply;
case KDBUS_ITEM_SECLABEL:
if (get_sec_label)
{
- pInfo->sec_label_len = item->size - KDBUS_ITEM_HEADER_SIZE - 1;
+ pInfo->sec_label_len = item->size - KDBUS_ITEM_HEADER_SIZE;
if (0 != pInfo->sec_label_len)
{
pInfo->sec_label = dbus_malloc (pInfo->sec_label_len);