From: Mark Spencer Date: Thu, 26 May 2005 15:06:24 +0000 (+0000) Subject: Fix typo about maddr (bug #4386) X-Git-Tag: 1.2.0-beta1~575 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6f2f031b35cd953b47cd7712d795db465c543ad;p=thirdparty%2Fasterisk.git Fix typo about maddr (bug #4386) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5772 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 2af7632c51..36433f3b49 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3459,7 +3459,7 @@ static void set_destination(struct sip_pvt *p, char *uri) maddr += 6; hn = strspn(maddr, "0123456789.") + 1; if (hn > sizeof(hostname)) hn = sizeof(hostname); - ast_copy_string(hostname, h, hn); + ast_copy_string(hostname, maddr, hn); } hp = ast_gethostbyname(hostname, &ahp);