hfp_ag: increase buffer to avoid warning, fixes #523

This commit is contained in:
Matthias Ringwald 2023-08-30 14:39:24 +02:00
parent d2d1d05367
commit 8d860c8fde

View File

@ -206,7 +206,7 @@ static int has_hf_indicators_feature(hfp_connection_t * hfp_connection){
/* unsolicited responses */
static int hfp_ag_send_change_in_band_ring_tone_setting_cmd(hfp_connection_t * hfp_connection){
char buffer[20];
char buffer[40];
snprintf(buffer, sizeof(buffer), "\r\n%s: %d\r\n",
HFP_CHANGE_IN_BAND_RING_TONE_SETTING, use_in_band_tone(hfp_connection));
buffer[sizeof(buffer) - 1] = 0;