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:
Michael Jerris 2007-05-29 03:08:41 +00:00
parent 620c9f5833
commit b928b60c87
1 changed files with 2 additions and 3 deletions

View File

@ -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++;