From 1a57d8a92ec93ae492fd0072800c461a4d057eee Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 13 Feb 2018 13:08:52 -0600 Subject: [PATCH] hfpmodem: Don't use strcat --- drivers/hfpmodem/voicecall.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c index 11ae0dac..6ffe9d52 100644 --- a/drivers/hfpmodem/voicecall.c +++ b/drivers/hfpmodem/voicecall.c @@ -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)