Fix get_rdnis typo

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1009 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2003-05-13 00:17:14 +00:00
parent af47f4a497
commit 6642fb0688
1 changed files with 1 additions and 1 deletions

View File

@ -3058,7 +3058,7 @@ static int get_rdnis(struct sip_pvt *p, struct sip_request *oreq)
req = oreq;
if (!req)
req = &p->initreq;
strncpy(tmp, get_header(oreq, "Diversion"), sizeof(tmp) - 1);
strncpy(tmp, get_header(req, "Diversion"), sizeof(tmp) - 1);
if (!strlen(tmp))
return 0;
c = ditch_braces(tmp);