Handle properly filler and do not remove last digit

svn path=/trunk/; revision=41979
This commit is contained in:
pascal 2012-04-08 13:10:45 +00:00
parent eec1e3d498
commit e599abd268
1 changed files with 5 additions and 1 deletions

View File

@ -1931,10 +1931,14 @@ msisdn_to_str(tvbuff_t *tvb, gint offset, int len)
j++;
if (bits8to5 <= 9)
str[j++] = BCD2CHAR(bits8to5);
else if ((i == (MIN(len, 9) - 1)) && (bits8to5 == 0xF)) {
/* filler found (odd number of digits); stop here */
break;
}
else
j++;
}
str[j-1] = '\0';
str[j] = '\0';
return str;
}