mirror of git://git.sysmocom.de/ofono
hfpmodem: Don't use strcat
This commit is contained in:
parent
96508d1e2c
commit
1a57d8a92e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue