hfp: use buffer smaller than mimimum rfcomm mtu for CHLD

This commit is contained in:
Matthias Ringwald 2015-12-18 15:31:27 +01:00
parent e81f58c742
commit 47c8cf6f28

View File

@ -433,7 +433,7 @@ static int hfp_ag_set_indicator_status_update_cmd(uint16_t cid, uint8_t activate
static int hfp_ag_retrieve_can_hold_call_cmd(uint16_t cid){ static int hfp_ag_retrieve_can_hold_call_cmd(uint16_t cid){
char buffer[100]; char buffer[40];
int offset = snprintf(buffer, sizeof(buffer), "\r\n%s:", HFP_SUPPORT_CALL_HOLD_AND_MULTIPARTY_SERVICES); int offset = snprintf(buffer, sizeof(buffer), "\r\n%s:", HFP_SUPPORT_CALL_HOLD_AND_MULTIPARTY_SERVICES);
offset += hfp_ag_call_services_join(buffer+offset, sizeof(buffer)-offset); offset += hfp_ag_call_services_join(buffer+offset, sizeof(buffer)-offset);