diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2012-03-31 20:57:15 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2012-03-31 20:57:15 +0000 |
commit | 80445e5a9977caf5d6c2a4555381d1b1d64a5018 (patch) | |
tree | 04a7a30a7af33c1f2c79b4d60b00d119f5ffb97e /epan/dissectors/packet-gsm_a_dtap.c | |
parent | bb8afe3f688c137bc275354b4ffc36f766e154e5 (diff) |
Fix off by one shift errors introduced in r39530 where it seemed proper[1]
[1] I'm unsure of packet-dtpt, so I haven't patch it.
svn path=/trunk/; revision=41873
Diffstat (limited to 'epan/dissectors/packet-gsm_a_dtap.c')
-rw-r--r-- | epan/dissectors/packet-gsm_a_dtap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gsm_a_dtap.c b/epan/dissectors/packet-gsm_a_dtap.c index b928c19a32..470751cdd8 100644 --- a/epan/dissectors/packet-gsm_a_dtap.c +++ b/epan/dissectors/packet-gsm_a_dtap.c @@ -742,8 +742,7 @@ de_network_name(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 off } else { - /* tvb_get_ephemeral_unicode_string takes the length in number of guint16's */ - net_name = tvb_get_ephemeral_unicode_string(tvb, curr_offset, ((len - 1) >> 1), ENC_BIG_ENDIAN); + net_name = tvb_get_ephemeral_unicode_string(tvb, curr_offset, (len - 1), ENC_BIG_ENDIAN); proto_tree_add_text(tree, tvb, curr_offset, len - 1, "Text String: %s", net_name); } break; |