forked from osmocom/wireshark
Handle properly filler and do not remove last digit svn path=/trunk/; revision=41979
This commit is contained in:
parent
eec1e3d498
commit
e599abd268
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue