hfpmodem: Don't use strcat

This commit is contained in:
Denis Kenzior 2018-02-13 13:08:52 -06:00
parent 96508d1e2c
commit 1a57d8a92e
1 changed files with 1 additions and 3 deletions

View File

@ -433,9 +433,7 @@ static void hfp_dial_memory(struct ofono_voicecall *vc,
cbd->user = vc;
DBG("Calling memory location %d\n", memory_location);
snprintf(buf, sizeof(buf), "ATD>%d", memory_location);
strcat(buf, ";");
snprintf(buf, sizeof(buf), "ATD>%d;", memory_location);
if (g_at_chat_send(vd->chat, buf, none_prefix,
atd_cb, cbd, g_free) > 0)