Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
hfpmodem: Don't use strcat
  • Loading branch information
denkenz authored and monich committed Feb 5, 2020
1 parent c7aab2e commit 30dfbf8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ofono/drivers/hfpmodem/voicecall.c
Expand Up @@ -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)
Expand Down

0 comments on commit 30dfbf8

Please sign in to comment.