Loading system/btif/src/btif_storage.cc +4 −0 Original line number Diff line number Diff line Loading @@ -231,6 +231,10 @@ static int prop2cfg(bt_bdaddr_t* remote_bd_addr, bt_property_t* prop) { bt_uuid_t* p_uuid = (bt_uuid_t*)prop->val + i; memset(buf, 0, sizeof(buf)); uuid_to_string_legacy(p_uuid, buf, sizeof(buf)); if (strlen(value) + strlen(buf) + 1 > (int) sizeof(value) - 1) { android_errorWriteLog(0x534e4554, "73963551"); return false; } strcat(value, buf); // strcat(value, ";"); strcat(value, " "); Loading Loading
system/btif/src/btif_storage.cc +4 −0 Original line number Diff line number Diff line Loading @@ -231,6 +231,10 @@ static int prop2cfg(bt_bdaddr_t* remote_bd_addr, bt_property_t* prop) { bt_uuid_t* p_uuid = (bt_uuid_t*)prop->val + i; memset(buf, 0, sizeof(buf)); uuid_to_string_legacy(p_uuid, buf, sizeof(buf)); if (strlen(value) + strlen(buf) + 1 > (int) sizeof(value) - 1) { android_errorWriteLog(0x534e4554, "73963551"); return false; } strcat(value, buf); // strcat(value, ";"); strcat(value, " "); Loading