Merge "Increase size of written bytes for snprintf for AT+BIND" am: fca1242cf1
am: 7d2fc68df8
Change-Id: I6a8a5df14408ac09807a5e881dfe94f05e1a8283
diff --git a/bta/ag/bta_ag_cmd.cc b/bta/ag/bta_ag_cmd.cc
index dbbd460..405712b 100644
--- a/bta/ag/bta_ag_cmd.cc
+++ b/bta/ag/bta_ag_cmd.cc
@@ -708,7 +708,7 @@
if (bta_ag_local_hf_ind_cfg[i + 1].is_supported) {
/* Add ',' from second indicator */
if (index > 1) buffer[index++] = ',';
- snprintf(&buffer[index++], 1, "%d",
+ snprintf(&buffer[index++], 2, "%d",
bta_ag_local_hf_ind_cfg[i + 1].ind_id);
}
}