off by 1 error in Q931Uie_CalledNum.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@174 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
620c9f5833
commit
b928b60c87
|
@ -706,8 +706,7 @@ L3INT Q931Uie_CalledNum(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *pMsg, L3UCHAR
|
|||
*pIE=0;
|
||||
|
||||
/* Octet 1 */
|
||||
pie->IEId = IBuf[Octet];
|
||||
Octet ++;
|
||||
pie->IEId = IBuf[Octet++];
|
||||
|
||||
/* Octet 2 */
|
||||
IESize = IBuf[Octet ++];
|
||||
|
@ -718,7 +717,7 @@ L3INT Q931Uie_CalledNum(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *pMsg, L3UCHAR
|
|||
Octet ++;
|
||||
|
||||
/* Octet 4*/
|
||||
for (x = 0; x < IESize; x++)
|
||||
for (x = 0; x < IESize - 1; x++)
|
||||
{
|
||||
pie->Digit[x] = IBuf[Octet+Off] & 0x7f;
|
||||
Off++;
|
||||
|
|
Loading…
Reference in New Issue