From 0e531ebdf273e9827a2dfbb70b6b8a090695d0d5 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 4 Dec 2014 06:45:26 -0500 Subject: [PATCH] change created_from to an allocated string buffer --- daemon/call_interfaces.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/call_interfaces.c b/daemon/call_interfaces.c index 5e6e8f82d..73584180b 100644 --- a/daemon/call_interfaces.c +++ b/daemon/call_interfaces.c @@ -632,7 +632,7 @@ static const char *call_offer_answer_ng(bencode_item_t *input, struct callmaster goto out; if (addr) { - memcpy(call->created_from, addr, strlen(addr)); + call->created_from = call_strdup(call, addr); } /* At least the random ICE strings are contained within the call struct, so we * need to hold a ref until we're done sending the reply */