fix error I introduced into oej's patch :-(
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 30 Aug 2005 01:04:17 +0000 (01:04 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 30 Aug 2005 01:04:17 +0000 (01:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6447 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index b7ae7cf..0b77fab 100755 (executable)
@@ -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)