for (i = 0; i < count; i++) {
memset(dst_info->addresses[i].addr, 0,
- BT_ADDRESS_STRING_SIZE);
+ BLUETOOTH_ADDRESS_LENGTH);
g_strlcpy((gchar *)dst_info->addresses[i].addr, (gchar *)src_info->addresses[i].addr,
- BT_ADDRESS_STRING_SIZE);
+ BLUETOOTH_ADDRESS_LENGTH);
// BT_DBG("address[%d] : %s", i, dst_info->addresses[i].addr);
}
if (list) {
ret = DPM_RESULT_SUCCESS;
for (; list; list = list->next, i++) {
- memset(device_list.addresses[i].addr, 0, BT_ADDRESS_STRING_SIZE);
+ memset(device_list.addresses[i].addr, 0, BLUETOOTH_ADDRESS_LENGTH);
_bt_convert_addr_string_to_type(device_list.addresses[i].addr, list->data);
}
device_list.count = g_slist_length(policy_table[DPM_POLICY_BLUETOOTH_DEVICES_BLACKLIST].list);
if (list) {
ret = DPM_RESULT_SUCCESS;
for (; list; list = list->next, i++) {
- memset(device_list.addresses[i].addr, 0, BT_ADDRESS_STRING_SIZE);
+ memset(device_list.addresses[i].addr, 0, BLUETOOTH_ADDRESS_LENGTH);
_bt_convert_addr_string_to_type(device_list.addresses[i].addr, list->data);
}
char *target_file = NULL;
char *download_path = NULL;
char *vcard_handle = NULL;
- char vcard[10] = { 0, };
+ char vcard[20] = { 0, };
GVariantBuilder builder;
GVariantBuilder inner_builder;
GVariant *filters;