diff options
-rw-r--r-- | epan/dissectors/packet-gtp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-gtp.c b/epan/dissectors/packet-gtp.c index 1301ba4f8b..d019015e38 100644 --- a/epan/dissectors/packet-gtp.c +++ b/epan/dissectors/packet-gtp.c @@ -1903,11 +1903,11 @@ id_to_str(tvbuff_t *tvb, gint offset) if (bits4to1 <= 9) str[j++] = BCD2CHAR(bits4to1); else - j++; + str[j++] = ' '; if (bits8to5 <= 9) str[j++] = BCD2CHAR(bits8to5); else - j++; + str[j++] = ' '; } str[j] = '\0'; return str; @@ -1928,7 +1928,7 @@ msisdn_to_str(tvbuff_t *tvb, gint offset, int len) if (bits4to1 <= 9) str[j++] = BCD2CHAR(bits4to1); else - j++; + str[j++] = '?'; if (bits8to5 <= 9) str[j++] = BCD2CHAR(bits8to5); else if ((i == (MIN(len, 9) - 1)) && (bits8to5 == 0xF)) { @@ -1936,7 +1936,7 @@ msisdn_to_str(tvbuff_t *tvb, gint offset, int len) break; } else - j++; + str[j++] = '?'; } str[j] = '\0'; |