From 1369e0caffc94ce9dc3be97252868373c6b6a91b Mon Sep 17 00:00:00 2001 From: kpfleming Date: Tue, 30 Aug 2005 01:04:17 +0000 Subject: fix error I introduced into oej's patch :-( git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6447 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'channels/chan_sip.c') diff --git a/channels/chan_sip.c b/channels/chan_sip.c index b7ae7cf79..0b77fabc4 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5642,7 +5642,7 @@ static void build_route(struct sip_pvt *p, struct sip_request *req, int backward } thishop = malloc(sizeof(*thishop) + len); if (thishop) { - strcpy(thishop->hop, c); + ast_copy_string(thishop->hop, c, len); thishop->next = NULL; /* Goes at the end */ if (tail) -- cgit v1.2.3