diff options
author | Bill Meier <wmeier@newsguy.com> | 2009-09-23 16:06:39 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2009-09-23 16:06:39 +0000 |
commit | 81444cdda09f8512170f60a9a02f31e06a2c5730 (patch) | |
tree | 5cf255a0d57b0dacbc02631a7d1085f2ca9a5a79 | |
parent | cf326e03043fb225fc082d9328297c6dc125b0ce (diff) |
Quick fix for Bug #4040.
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4040
ToDo: Fix usage of
gchar xxx[..][..] = {"aaa", "bbb", ...};
svn path=/trunk/; revision=30094
-rw-r--r-- | epan/dissectors/packet-gsm_a_gm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gsm_a_gm.c b/epan/dissectors/packet-gsm_a_gm.c index 622aba0111..a7f8e96154 100644 --- a/epan/dissectors/packet-gsm_a_gm.c +++ b/epan/dissectors/packet-gsm_a_gm.c @@ -999,8 +999,9 @@ de_gmm_ms_net_cap(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gc proto_tree_add_text(tree, tvb, curr_offset, 1, "PS inter-RAT HO to UTRAN Iu mode capability: (%u) %s", - oct, - answer_ps_irat[oct]); + oct & 0x1, /* XXX: There's only 2 entries in the ..._irat array */ + answer_ps_irat[oct & 0x1]); /* so we'll assume that this is a 1 bit value. */ + proto_tree_add_text(tree, tvb, curr_offset, 1, |